summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriFarbod <[email protected]>2026-07-18 09:00:27 +0330
committerGitHub <[email protected]>2026-07-18 09:00:27 +0330
commitd861060e3f308ec880b3b16d4c42a08217a53d3f (patch)
treef437029ec559f026bcc6ec26391a127d5d6dc795
parent0cb38ea4d9823ee49d15debb7a94a2fc9e72d3cc (diff)
Update NDK's sdkver for riscv64 architecture
When the riscv64 architecture was first introduced, it was at 35, but that version was never usable outside of internal dev environments, the libraries for linking are actually in `36`.
-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