summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-09 23:20:38 +0800
committerruki <[email protected]>2024-07-09 23:20:38 +0800
commit85f26eba2f7d874acbcc0294b39f945682223b94 (patch)
tree1f465d345e7916f0c628a9b72b721816a30dec1e
parent46952b01a1f8b8e0dc8b68f4b5228ed2f466aa39 (diff)
improve to find cuda for linux arm64 #5317
-rw-r--r--xmake/modules/detect/sdks/find_cuda.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_cuda.lua b/xmake/modules/detect/sdks/find_cuda.lua
index 302b6ade0..6dc9f19d0 100644
--- a/xmake/modules/detect/sdks/find_cuda.lua
+++ b/xmake/modules/detect/sdks/find_cuda.lua
@@ -105,7 +105,7 @@ function _find_cuda(sdkdir)
if is_host("windows") then
local subdir = is_arch("x64") and "x64" or "Win32"
table.insert(linkdirs, path.join(sdkdir, "lib", subdir))
- elseif is_host("linux") and is_arch("x86_64") then
+ elseif is_host("linux") and is_arch("x86_64", "arm64") then
table.insert(linkdirs, path.join(sdkdir, "lib64"))
else
table.insert(linkdirs, path.join(sdkdir, "lib"))