From 7c08a859433be31e67aa4ef4a7968060a1e57ca5 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 25 Aug 2025 22:33:58 +0800 Subject: fix run #6742 --- xmake/actions/run/main.lua | 6 +++--- 1 file 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") -- cgit v1.3.1