summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/run/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/actions/run/main.lua b/xmake/actions/run/main.lua
index c51825d8c..70a277a86 100644
--- a/xmake/actions/run/main.lua
+++ b/xmake/actions/run/main.lua
@@ -210,6 +210,9 @@ function main()
-- Automatically build before running
if project.policy("run.autobuild") then
+ -- we need clear the previous config and reload it
+ -- to avoid trigger recheck configs
+ config.clear()
task.run("build")
end