From cd5449d66ce5463202b4ccde6b41edf9486b42f5 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 17 Dec 2020 00:05:41 +0800 Subject: improve to find plat/arch --- xmake/actions/config/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 6c143bf81..c52d2a179 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -195,6 +195,11 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) -- lock the whole project project.lock() + -- find default platform and save to configuration + local plat, arch = find_platform({global = true}) + assert(plat == config.plat()) + assert(arch == config.arch()) + -- enter menu config local options_changed = false if option.get("menu") then @@ -269,11 +274,6 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) end end - -- find default platform and save to configuration - local plat, arch = find_platform({global = true}) - assert(plat == config.plat()) - assert(arch == config.arch()) - -- load platform instance local instance_plat = platform.load(plat, arch) -- cgit v1.3.1