summaryrefslogtreecommitdiff
path: root/xmake/platforms/linux
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-11 00:20:40 +0800
committerruki <[email protected]>2019-06-10 20:04:05 +0800
commiteefa90347085c76301cb84920ed18321362bede4 (patch)
treece0686f60978f82824eba380a5bdd1011e459493 /xmake/platforms/linux
parent5c6aa211362c4ab0d115a3987dc9ce054082f872 (diff)
fix some device link issues
Diffstat (limited to 'xmake/platforms/linux')
-rw-r--r--xmake/platforms/linux/load.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/platforms/linux/load.lua b/xmake/platforms/linux/load.lua
index 4b49bec9a..184c2fa64 100644
--- a/xmake/platforms/linux/load.lua
+++ b/xmake/platforms/linux/load.lua
@@ -79,8 +79,9 @@ function main(platform)
platform:set("rc-ldflags", "")
-- init flags for cuda
- local cu_archs = { i386 = "-m32 -Xcompiler -m32", x86_64 = "-m64 -Xcompiler -m64" }
+ local cu_archs = { i386 = "-m32", x86_64 = "-m64" }
platform:add("cuflags", 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")))