diff options
| author | ruki <[email protected]> | 2019-05-18 00:27:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-17 20:45:25 +0800 |
| commit | 9c464b2ebdf56f4da8202b419db18105e86d45e3 (patch) | |
| tree | e0facad4366513d560bdf0e68d9d0e61675d42f9 /xmake/platforms/linux/load.lua | |
| parent | 873c3409ac000da83f057342abf656cb79c3d47f (diff) | |
add --cu-cxx to nvcc/-ccbin
Diffstat (limited to 'xmake/platforms/linux/load.lua')
| -rw-r--r-- | xmake/platforms/linux/load.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/platforms/linux/load.lua b/xmake/platforms/linux/load.lua index 622d59200..b9ff210b1 100644 --- a/xmake/platforms/linux/load.lua +++ b/xmake/platforms/linux/load.lua @@ -90,5 +90,9 @@ function main(platform) platform:add("cu-shflags", "-L" .. os.args(path.join(cuda_dir, "lib"))) platform:add("cu-ldflags", "-Xlinker -rpath=" .. os.args(path.join(cuda_dir, "lib"))) end + local cu_cxx = config.get("cu-cxx") + if cu_cxx then + platform:add("cuflags", "-ccbin", os.args(cu_cxx)) + end end |
