summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/build/main.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/actions/build/main.lua b/xmake/actions/build/main.lua
index 151a40efa..482b465a9 100644
--- a/xmake/actions/build/main.lua
+++ b/xmake/actions/build/main.lua
@@ -74,6 +74,7 @@ function _try_build()
environment.enter("toolchains")
tool.build()
environment.leave("toolchains")
+ return true
end
end
@@ -81,8 +82,8 @@ end
function main()
-- try building it using third-party buildsystem if xmake.lua not exists
- if not os.isfile(project.rootfile()) then
- return _try_build()
+ if not os.isfile(project.rootfile()) and _try_build() then
+ return
end
-- post statistics before locking project