Skip to content

Commit

Permalink
cuda.eclass: fix g++ check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Syderitic authored and mgorny committed Dec 20, 2016
1 parent 7e09c5e commit d090017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/cuda.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d090017

Please sign in to comment.