summaryrefslogtreecommitdiff
path: root/xmake/modules/private/detect/find_platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-21 22:41:44 +0800
committerruki <[email protected]>2021-07-21 22:41:44 +0800
commit111e917c3317543125fb18aac9101c7c78ab1176 (patch)
tree362df2f295738b6b0af029fafb9a6ff5cc797d0b /xmake/modules/private/detect/find_platform.lua
parent3557aa0c7934ee6a42defc9649e94d27d7c39b28 (diff)
use default arch
Diffstat (limited to 'xmake/modules/private/detect/find_platform.lua')
-rw-r--r--xmake/modules/private/detect/find_platform.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/detect/find_platform.lua b/xmake/modules/private/detect/find_platform.lua
index 317d11ce9..ebbee55b6 100644
--- a/xmake/modules/private/detect/find_platform.lua
+++ b/xmake/modules/private/detect/find_platform.lua
@@ -83,6 +83,10 @@ function _find_arch(plat, arch)
arch = arch or config.get("arch")
if not arch then
if not arch then
+ local _, default_arch = project.allowed_archs(plat)
+ arch = default_arch
+ end
+ if not arch then
if plat == "android" then
arch = "armeabi-v7a"
elseif plat == "iphoneos" or plat == "appletvos" then