Skip to content

Commit

Permalink
fix autogen for build
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 23, 2020
1 parent de2566e commit a32edab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xmake/actions/build/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ function _try_build()
environment.enter("toolchains")
tool.build()
environment.leave("toolchains")
return true
end
end

-- main
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
Expand Down

0 comments on commit a32edab

Please sign in to comment.