diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2017-01-03 09:23:55 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2017-01-03 08:46:22 +0000 |
commit | a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5 (patch) | |
tree | 6dae2aeb351a8c8c1d13d79555c31693bd173ffb /eclass | |
parent | dev-util/nvidia-cuda-sdk: Add slot operators (diff) | |
download | gentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.tar.gz gentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.tar.bz2 gentoo-a85d17b70ad468b095ab3d2fa3d10ab5d093f4b5.zip |
eclass/cuda.eclass: Fix passing compiler and linker options
As documented in 'nvcc --help', the correct syntax is:
--compiler-options <options>,... (-Xcompiler)
--linker-options <options>,... (-Xlinker)
Closes: https://github.com/gentoo/gentoo/pull/3310
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cuda.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index 7873d14d2708..79763e1d100a 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -110,7 +110,7 @@ cuda_sanitize() { NVCCFLAGS+=" $(cuda_gccdir -f)" # Tell nvcc which flags should be used for underlying C compiler - NVCCFLAGS+=" --compiler-options=\"${CXXFLAGS}\" --linker-options=\"${rawldflags// /,}\"" + NVCCFLAGS+=" --compiler-options \"${CXXFLAGS}\" --linker-options \"${rawldflags// /,}\"" debug-print "Using ${NVCCFLAGS} for cuda" export NVCCFLAGS |