summaryrefslogtreecommitdiff
path: root/xmake/platforms/linux/load.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-12 00:39:26 +0800
committerruki <[email protected]>2019-06-11 21:56:41 +0800
commit5cc9f406fb8d7815bb0ebed81b937876291ef81a (patch)
treecc2387078bf8fe5004e488955b9e9e0f526210c3 /xmake/platforms/linux/load.lua
parent3922367dec058b680fabc41f32e9b507822abe2b (diff)
parent52f3bbe24e365b28f4bcd1e277d178a2561a1e8b (diff)
support cuda device-link
Diffstat (limited to 'xmake/platforms/linux/load.lua')
-rw-r--r--xmake/platforms/linux/load.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/xmake/platforms/linux/load.lua b/xmake/platforms/linux/load.lua
index b9ff210b1..dcdacd8c1 100644
--- a/xmake/platforms/linux/load.lua
+++ b/xmake/platforms/linux/load.lua
@@ -77,22 +77,5 @@ function main(platform)
-- init flags for rust
platform:set("rc-shflags", "")
platform:set("rc-ldflags", "")
-
- -- init flags for cuda
- local cu_archs = { i386 = "-m32 -Xcompiler -m32", x86_64 = "-m64 -Xcompiler -m64" }
- platform:add("cuflags", cu_archs[arch] or "")
- platform:add("cu-shflags", cu_archs[arch] or "")
- platform:add("cu-ldflags", cu_archs[arch] or "")
- local cuda_dir = config.get("cuda")
- if cuda_dir then
- platform:add("cuflags", "-I" .. os.args(path.join(cuda_dir, "include")))
- platform:add("cu-ldflags", "-L" .. os.args(path.join(cuda_dir, "lib")))
- 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