summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-25 22:33:58 +0800
committerruki <[email protected]>2025-08-25 22:33:58 +0800
commit7c08a859433be31e67aa4ef4a7968060a1e57ca5 (patch)
tree9184d2c94930df0e03f225398663050db780b740
parentf1694dae9abcdb479bf9e4c8f59712c7d5d62c98 (diff)
fix run #6742
-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")