From d09001707cb2b03c4cefccb63e1b5293c23aa59a Mon Sep 17 00:00:00 2001 From: syderitic Date: Sun, 4 Dec 2016 22:38:37 +0000 Subject: [PATCH] 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. --- eclass/cuda.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2