cuda.eclass: fix g++ check
authorsyderitic <onun23@gmail.com>
Sun, 4 Dec 2016 22:38:37 +0000 (22:38 +0000)
committerMichał Górny <mgorny@gentoo.org>
Tue, 20 Dec 2016 17:51:17 +0000 (18:51 +0100)
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

index f8d7188a9b78c086415a14f692518f4924241cfd..cc92a3466256be380d32613ae9db1a4c04e405aa 100644 (file)
@@ -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