summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-04-13 12:04:53 -0400
committerMike Gilbert <floppym@gentoo.org>2018-04-18 14:13:10 -0400
commit1e64d3ebf9edf0f02cc271faa9c3eaedeb6d280d (patch)
treedc5392cb9ca40ae7d4b5263111ee5c875a9e0b25 /eclass/tests
parentwww-plugins/chrome-binary-plugins: automated update (66.0.3359.117, 66.0.3359... (diff)
downloadgentoo-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-xeclass/tests/flag-o-matic.sh4
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