summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorcharles seizilles <[email protected]>2026-01-30 18:36:49 +0100
committercharles seizilles <[email protected]>2026-01-30 18:36:49 +0100
commit5b723b0208d95d3734f6c467e6aaefda3201eded (patch)
tree6638c4661175ccb47e20f55a66fb577b5d62b868 /xmake/modules/core
parent51a68ee33918b95811420beb6a56673a83abe6cc (diff)
find_cuda: revert breaking change
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/gcc/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc/has_flags.lua b/xmake/modules/core/tools/gcc/has_flags.lua
index c743f91fb..5539fc0f4 100644
--- a/xmake/modules/core/tools/gcc/has_flags.lua
+++ b/xmake/modules/core/tools/gcc/has_flags.lua
@@ -125,7 +125,7 @@ function _check_try_running(flags, opt, islinker)
if not cuda_gpu_flags then
local cuda = get_config("cuda")
local cuda_sdk = find_cuda(cuda)
- local cuda_sdkver = cuda_sdk and cuda_sdk.sdkver or "7.0"
+ local cuda_sdkver = cuda_sdk and cuda_sdk.version or "7.0"
if cuda_sdkver and semver.compare(cuda_sdkver, "12.0") >= 0 then
table.insert(args, 1, "--cuda-gpu-arch=sm_80")
end