summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-07-18 18:18:28 +0800
committerGitHub <[email protected]>2026-07-18 18:18:28 +0800
commitc4f4ad6aec62c15fdff13721716a577690e0db81 (patch)
treef437029ec559f026bcc6ec26391a127d5d6dc795
parent0cb38ea4d9823ee49d15debb7a94a2fc9e72d3cc (diff)
parentd861060e3f308ec880b3b16d4c42a08217a53d3f (diff)
Merge pull request #7657 from ifarbod/patch/rv64-ndk-ver
Update NDK's sdkver for riscv64 architecture
-rw-r--r--xmake/modules/detect/sdks/find_ndk.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_ndk.lua b/xmake/modules/detect/sdks/find_ndk.lua
index ce7a4b712..a89536d5f 100644
--- a/xmake/modules/detect/sdks/find_ndk.lua
+++ b/xmake/modules/detect/sdks/find_ndk.lua
@@ -95,7 +95,7 @@ function _find_ndk_sdkver(sdkdir, bindir, sysroot, arch)
-- try to select the best compatible version
local sdkver = "16"
if use_llvm or arch == "arm64-v8a" or arch == "riscv64" then
- sdkver = (arch == "riscv64") and "35" or "21"
+ sdkver = (arch == "riscv64") and "36" or "21"
end
if sysroot then
if os.isdir(path.join(sysroot, "usr", "lib", triple, sdkver)) then