summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-29 19:17:05 +0000
committerMike Frysinger <vapier@gentoo.org>2015-03-29 19:17:05 +0000
commitb865281db97289b5295a6d9823008c8831dd3875 (patch)
tree3d8f8c1cd6580f182b080f39b7a3d944bd452e3e /eclass
parentAdd missing dev-qt/qttest dependency wrt bug #531214 (diff)
downloadgentoo-2-b865281db97289b5295a6d9823008c8831dd3875.tar.gz
gentoo-2-b865281db97289b5295a6d9823008c8831dd3875.tar.bz2
gentoo-2-b865281db97289b5295a6d9823008c8831dd3875.zip
Add USE=cilk to control support for the Cilk Plus language.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ecd160aed674..e9550cdc8341 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.659 2015/03/29 18:30:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.660 2015/03/29 19:17:05 vapier Exp $
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -151,6 +151,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
# versions which we dropped. Since graphite was also experimental in
# the older versions, we don't want to bother supporting it. #448024
tc_version_is_at_least 4.8 && IUSE+=" graphite" IUSE_DEF+=( sanitize )
+ tc_version_is_at_least 4.9 && IUSE+=" cilk"
fi
[[ ${EAPI:-0} != 0 ]] && IUSE_DEF=( "${IUSE_DEF[@]/#/+}" )
@@ -1165,7 +1166,10 @@ toolchain_src_configure() {
fi
confgcc+=( --disable-libssp )
fi
+ fi
+ if in_iuse cilk ; then
+ confgcc+=( $(use_enable cilk libcilkrts) )
fi
# newer gcc's come with libquadmath, but only fortran uses