summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-18 22:24:31 +0800
committerruki <[email protected]>2023-03-18 22:24:31 +0800
commit41981ca8869e9c344e1ad792c3f09f6cc1068122 (patch)
tree5b967f095b582fa87deb421fd95bf0d5851c3912
parent023d2d754455214b53c401dd23febf2794827483 (diff)
improve on_config
-rw-r--r--xmake/actions/config/main.lua12
1 files 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