From: syderitic Date: Sun, 4 Dec 2016 22:38:37 +0000 (+0000) Subject: cuda.eclass: fix g++ check X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d09001707cb2b03c4cefccb63e1b5293c23aa59a;p=gentoo.git cuda.eclass: fix g++ check Currently the check against *g++* doesn't work, thus the NVCCFLAGS are never set accordingly. The check for gnu is now made through tc-is-gcc. --- diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index f8d7188a9b78..cc92a3466256 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -47,7 +47,7 @@ cuda_gccdir() { local gcc_bindir ver args="" flag ret # Currently we only support the gnu compiler suite - if [[ $(tc-getCXX) != *g++* ]]; then + if ! tc-is-gcc ; then ewarn "Currently we only support the gnu compiler suite" return 2 fi