summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-11 07:33:24 +0800
committerGitHub <[email protected]>2024-07-11 07:33:24 +0800
commitc90b483177dd45fb6e7a546b73fcd17c32bbaf23 (patch)
tree82b70bfcea8e214745f9e4d2df10ee80e3154916 /xmake/modules
parentff1692e1c69914ad794e793dfbee97e369cdfb55 (diff)
parent8f43e8a5e557b82d690aba161fa6e109af5cd7cf (diff)
Merge pull request #5319 from xmake-io/cuda
improve to find cuda for linux arm64 #5317
Diffstat (limited to 'xmake/modules')
-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"))