summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-11 00:21:59 +0800
committerruki <[email protected]>2019-06-10 20:11:57 +0800
commit9535258191b9187e6ba9987391d6777a71f974bd (patch)
treeaf24b7512884013fdc35830a95e9657e5d4ecc52
parent902a32984ed3b279068a9d17098e9c39056dce82 (diff)
fix device-link linkdirs for linux
-rw-r--r--xmake/rules/cuda/device_link/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/cuda/device_link/xmake.lua b/xmake/rules/cuda/device_link/xmake.lua
index a5f09d8c3..989aabdea 100644
--- a/xmake/rules/cuda/device_link/xmake.lua
+++ b/xmake/rules/cuda/device_link/xmake.lua
@@ -36,6 +36,9 @@ rule("cuda.device_link")
local subdir = is_arch("x64") and "x64" or "Win32"
target:add("linkdirs", path.join(cuda_dir, "lib", subdir))
target:add("rpathdirs", path.join(cuda_dir, "lib", subdir))
+ elseif is_plat("linux") and is_arch("x86_64") then
+ target:add("linkdirs", path.join(cuda_dir, "lib64"))
+ target:add("rpathdirs", path.join(cuda_dir, "lib64"))
else
target:add("linkdirs", path.join(cuda_dir, "lib"))
target:add("rpathdirs", path.join(cuda_dir, "lib"))