From 111e917c3317543125fb18aac9101c7c78ab1176 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 21 Jul 2021 22:41:44 +0800 Subject: use default arch --- xmake/modules/private/detect/find_platform.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/modules') 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 @@ -82,6 +82,10 @@ end 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" -- cgit v1.3.1