Add USE=cilk to control support for the Cilk Plus language.
authorMike Frysinger <vapier@gentoo.org>
Sun, 29 Mar 2015 19:17:05 +0000 (19:17 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 29 Mar 2015 19:17:05 +0000 (19:17 +0000)
eclass/toolchain.eclass

index ecd160aed674f0f853efb18423d60281543ab5a4..e9550cdc8341d38b71d5337f8b53bd66f5a060fb 100644 (file)
@@ -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