/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.183 Revision 1.184
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.183 2012/11/18 08:29:17 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.184 2012/11/29 23:27:32 vapier Exp $
4 4
5# @ECLASS: flag-o-matic.eclass 5# @ECLASS: flag-o-matic.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# toolchain@gentoo.org 7# toolchain@gentoo.org
8# @BLURB: common functions to manipulate and query toolchain flags 8# @BLURB: common functions to manipulate and query toolchain flags
390 390
391 [[ -z ${comp} || -z ${flag} ]] && return 1 391 [[ -z ${comp} || -z ${flag} ]] && return 1
392 392
393 # use -c so we can test the assembler as well 393 # use -c so we can test the assembler as well
394 local PROG=$(tc-get${comp}) 394 local PROG=$(tc-get${comp})
395 ${PROG} "${flag}" -c -o /dev/null -x${lang} /dev/null \ 395 ${PROG} "${flag}" -c -o /dev/null -x${lang} - < /dev/null \
396 > /dev/null 2>&1 396 > /dev/null 2>&1
397} 397}
398 398
399# @FUNCTION: test-flag-CC 399# @FUNCTION: test-flag-CC
400# @USAGE: <flag> 400# @USAGE: <flag>

Legend:
Removed from v.1.183  
changed lines
  Added in v.1.184

  ViewVC Help
Powered by ViewVC 1.1.20