From 41981ca8869e9c344e1ad792c3f09f6cc1068122 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Mar 2023 22:24:31 +0800 Subject: improve on_config --- xmake/actions/config/main.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index be0903f0c..d24987348 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -461,12 +461,6 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) -- otherwise has_package() will be invalid. _check_targets() - -- update the config files - generate_configfiles({force = recheck}) - if recheck then - generate_configheader() - end - -- check target toolchains if recheck then _check_target_toolchains() @@ -477,6 +471,12 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) -- config targets _config_targets() + + -- update the config files + generate_configfiles({force = recheck}) + if recheck then + generate_configheader() + end end -- dump config -- cgit v1.3.1