From: Mike Frysinger Date: Sun, 29 Mar 2015 19:17:05 +0000 (+0000) Subject: Add USE=cilk to control support for the Cilk Plus language. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=214a9639e06b35170a56c9ada1db13c072fcab58;p=gentoo.git Add USE=cilk to control support for the Cilk Plus language. --- 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 @@ -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