diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-04-13 12:04:53 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-04-18 14:13:10 -0400 |
commit | 1e64d3ebf9edf0f02cc271faa9c3eaedeb6d280d (patch) | |
tree | dc5392cb9ca40ae7d4b5263111ee5c875a9e0b25 /eclass/tests | |
parent | www-plugins/chrome-binary-plugins: automated update (66.0.3359.117, 66.0.3359... (diff) | |
download | gentoo-1e64d3ebf9edf0f02cc271faa9c3eaedeb6d280d.tar.gz gentoo-1e64d3ebf9edf0f02cc271faa9c3eaedeb6d280d.tar.bz2 gentoo-1e64d3ebf9edf0f02cc271faa9c3eaedeb6d280d.zip |
flag-o-matic.eclass: treat "--param x" as a unit when testing flags
For clang and gcc, --param consumes the next argument. Testing --param
and its value separately is nonsensical.
Acked-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/flag-o-matic.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 53af9f862c41..97cd71d710a2 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -6,7 +6,7 @@ source tests-common.sh inherit flag-o-matic -CFLAGS="-a -b -c=1" +CFLAGS="-a -b -c=1 --param l1-cache-size=32" CXXFLAGS="-x -y -z=2" LDFLAGS="-l -m -n=3" ftend() { @@ -55,7 +55,7 @@ done <<<" tbegin "strip-unsupported-flags" strip-unsupported-flags -[[ ${CFLAGS} == "" ]] && [[ ${CXXFLAGS} == "-z=2" ]] && [[ ${LDFLAGS} == "" ]] +[[ ${CFLAGS} == "--param l1-cache-size=32" ]] && [[ ${CXXFLAGS} == "-z=2" ]] && [[ ${LDFLAGS} == "" ]] ftend for var in $(all-flag-vars) ; do |