summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-06-12 16:01:40 +0200
committerGitHub <[email protected]>2024-06-12 16:01:40 +0200
commit6bf7abf613c8ac1c6390540c353f288c1eb591d3 (patch)
tree5c12cb41f87b39335a1a8e444117a42010c86bb5
parent8b28904ef5ecd20b0ceea3f38e35a655b2651627 (diff)
Android: add a better error if a wrong arch is specified
-rw-r--r--xmake/modules/detect/sdks/find_ndk.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_ndk.lua b/xmake/modules/detect/sdks/find_ndk.lua
index f5c06f317..41e8088cc 100644
--- a/xmake/modules/detect/sdks/find_ndk.lua
+++ b/xmake/modules/detect/sdks/find_ndk.lua
@@ -86,6 +86,7 @@ function _find_ndk_sdkver(sdkdir, bindir, sysroot, arch)
-- get triple
local triple = _get_triple(arch)
+ assert(triple, "no triple found for arch %s (wrong arch?)", arch)
-- try to select the best compatible version
local sdkver = "16"