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 | eaf3e781cf855e0921671b2eca9f18662401f895 (patch) | |
tree | e0d1c79ed29153048b643e8a3869b6aa2cc33586 /eclass/toolchain.eclass | |
parent | use arrays for IUSE_DEF to simplify code (diff) | |
download | gentoo-2-eaf3e781cf855e0921671b2eca9f18662401f895.tar.gz gentoo-2-eaf3e781cf855e0921671b2eca9f18662401f895.tar.bz2 gentoo-2-eaf3e781cf855e0921671b2eca9f18662401f895.zip |
add USE=sanitize to control libsanitizer #525174 by Lukas Lihotzki
Diffstat (limited to 'eclass/toolchain.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 |