summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-23 14:59:02 +0800
committerruki <[email protected]>2020-02-23 14:59:02 +0800
commita32edab8f3f30b75519cd3b29c115b3501721e5f (patch)
tree0708bfca2268c5af187ad8194ab88008d4044e3a
parentde2566ec37bbce2b4b2ba00e60fc4784b13a973c (diff)
fix autogen for build
-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