Skip to content

Commit

Permalink
toolchain.eclass: filter out -fdiagnostics-show-option on gcc-4.0 and…
Browse files Browse the repository at this point in the history
… older

-fdiagnostics-show-option was added in gcc-4.1.0.

Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Sep 16, 2018
1 parent a6db068 commit ce97006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eclass/toolchain.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,9 @@ gcc_do_filter_flags() {
filter-flags -f{no-,}stack-protector{,-all}
filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
fi
if ! tc_version_is_at_least 4.1 ; then
filter-flags -fdiagnostics-show-option
fi

if tc_version_is_at_least 3.4 ; then
case $(tc-arch) in
Expand Down

0 comments on commit ce97006

Please sign in to comment.