From d861060e3f308ec880b3b16d4c42a08217a53d3f Mon Sep 17 00:00:00 2001 From: iFarbod Date: Sat, 18 Jul 2026 09:00:27 +0330 Subject: 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`. --- xmake/modules/detect/sdks/find_ndk.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1