summaryrefslogtreecommitdiff
path: root/xmake/platforms/linux/config.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-18 18:10:48 +0800
committerOpportunityLiu <[email protected]>2019-06-18 18:10:48 +0800
commit026a8aa6a02bf9c12790404b9c551abf3dfd261b (patch)
tree13c9acd6bf397fbe8a1d0c121685693b9cffda34 /xmake/platforms/linux/config.lua
parent9c8b83a61fce275edd3808c54f36ba368378fa5d (diff)
fix find_program & find_file
add path.splitenv
Diffstat (limited to 'xmake/platforms/linux/config.lua')
-rw-r--r--xmake/platforms/linux/config.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/platforms/linux/config.lua b/xmake/platforms/linux/config.lua
index 4f133120f..c86144804 100644
--- a/xmake/platforms/linux/config.lua
+++ b/xmake/platforms/linux/config.lua
@@ -77,7 +77,6 @@ function _toolchains()
local rc_ar = toolchain("the rust static library archiver")
local cu = toolchain("the cuda compiler")
local cu_ld = toolchain("the cuda linker")
- local cu_sh = toolchain("the cuda shared library linker")
local cu_ccbin = toolchain("the cuda host c++ compiler")
local toolchains = {cc = cc, cxx = cxx, as = as, ld = ld, sh = sh, ar = ar, ex = ex,
mm = mm, mxx = mxx,
@@ -147,9 +146,8 @@ function _toolchains()
rc_ar:add("$(env RC)", "rustc")
-- init the cuda compiler and linker
- cu:add("nvcc")
+ cu:add("nvcc", "clang++", "clang")
cu_ld:add("nvcc")
- cu_sh:add("nvcc")
if not cross or cross == "" then
cu_ccbin:add("$(env CXX)", "$(env CC)", "gcc", "clang", "g++", "clang++")
end