diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-07-12 04:08:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-12 04:08:52 +0000 |
commit | e914e51c98123939a091c15876fafcb44f9625b1 (patch) | |
tree | c0bd4377e2aae82d93657ff7e225081002fb74ab /eclass/flag-o-matic.eclass | |
parent | turn `ewarn` for dead flags into `die` (diff) | |
download | gentoo-2-e914e51c98123939a091c15876fafcb44f9625b1.tar.gz gentoo-2-e914e51c98123939a091c15876fafcb44f9625b1.tar.bz2 gentoo-2-e914e51c98123939a091c15876fafcb44f9625b1.zip |
use -c rather than -S when testing flags so that we can check for assembler flags and not just compiler flags (which lets use check -Wa,--xxx flags #373743)
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 3119f3e4ebf7..2fec315b02a6 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.151 2011/07/12 03:58:11 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.152 2011/07/12 04:08:52 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -404,11 +404,11 @@ test-flag-PROG() { local comp=$1 local flags="$2" - [[ -z ${comp} || -z ${flags} ]] && \ - return 1 + [[ -z ${comp} || -z ${flags} ]] && return 1 + # use -c so we can test the assembler as well local PROG=$(tc-get${comp}) - ${PROG} ${flags} -S -o /dev/null -xc /dev/null \ + ${PROG} ${flags} -c -o /dev/null -xc /dev/null \ > /dev/null 2>&1 } |