diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-03-26 09:13:23 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2020-03-26 09:13:23 +0000 |
commit | 644e96aa014d4322f542fdb5bc873077add7f0fe (patch) | |
tree | 02cc1ac8a0ad1797c3a451effc569e50a3200985 /eclass | |
parent | 2020-03-26 08:14:51 UTC (diff) | |
parent | dev-lang/php: ppc64 stable wrt bug #713484 (diff) | |
download | gentoo-644e96aa014d4322f542fdb5bc873077add7f0fe.tar.gz gentoo-644e96aa014d4322f542fdb5bc873077add7f0fe.tar.bz2 gentoo-644e96aa014d4322f542fdb5bc873077add7f0fe.zip |
Merge updates from master
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 9ef9ac3685e0..e76eef293e89 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -487,6 +487,17 @@ test-flag-PROG() { printf "%s\n" "${in_src}" > "${test_in}" || die "Failed to create '${test_in}'" + # Currently we rely on warning-free output of a compiler + # before the flag to see if a flag prduces any warnings. + # This has a few drawbacks: + # - if compiler already generates warnings we filter out + # every single flag: bug #712488 + # - if user actually wants to see warnings we just strip + # them regardless of warnings type. + # + # We can add more selective detection of no-op flags via + # '-Werror=ignored-optimization-argument' and similar error options + # similar to what we are doing with '-Qunused-arguments'. local cmdline=( "${comp[@]}" # Clang will warn about unknown gcc flags but exit 0. |