summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/run/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua
index 4f1e46d70..6b8f90a8a 100644
--- a/xmake/actions/run/main.lua
+++ b/xmake/actions/run/main.lua
@@ -197,11 +197,11 @@ function main()
-- to avoid trigger recheck configs
config.clear()
task.run("build", {target = option.get("target"), all = option.get("all")}, {disable_dump = true})
+ else
+ -- it will call on_config, we need to avoid repeat call it when autobuild is enabled.
+ project.load_targets()
end
- -- load targets
- project.load_targets()
-
-- check targets first
local targetname
local group_pattern = option.get("group")