diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-10-19 05:42:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-10-19 05:42:28 +0000 |
commit | 5af11d9073f7a3d339acb68ca42125b944c0df0d (patch) | |
tree | 2cc2285d46a96d1d92f4b88bdd4ee7726743e164 /eclass | |
parent | use arrays for IUSE_DEF to simplify code (diff) | |
download | historical-5af11d9073f7a3d339acb68ca42125b944c0df0d.tar.gz historical-5af11d9073f7a3d339acb68ca42125b944c0df0d.tar.bz2 historical-5af11d9073f7a3d339acb68ca42125b944c0df0d.zip |
add USE=sanitize to control libsanitizer #525174 by Lukas Lihotzki
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 1387c5ac5ad2..43c4dbb2230d 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.638 2014/10/19 05:38:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.639 2014/10/19 05:42:28 vapier Exp $ # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -135,6 +135,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 4.3 && IUSE+=" fixed-point" tc_version_is_at_least 4.6 && IUSE+=" graphite" tc_version_is_at_least 4.7 && IUSE+=" go" + tc_version_is_at_least 4.8 && IUSE_DEF+=( sanitize ) fi [[ ${EAPI:-0} != 0 ]] && IUSE_DEF=( "${IUSE_DEF[@]/#/+}" ) @@ -1178,6 +1179,10 @@ toolchain_src_configure() { confgcc+=( --without-ppl ) fi + if tc_version_is_at_least 4.8 ; then + confgcc+=( $(use_enable sanitize libsanitizer) ) + fi + # Disable gcc info regeneration -- it ships with generated info pages # already. Our custom version/urls/etc... trigger it. #464008 export gcc_cv_prog_makeinfo_modern=no |