summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-15 16:17:54 +0800
committerruki <[email protected]>2015-06-15 16:17:54 +0800
commit5aa1e3e13876809ff14264429ad98fa3d5457b99 (patch)
treef02961794ec0d6d1cdd194418ce529dd3eee7e61 /xmake/scripts
parent8b3ec0b07a3cdcd3e946c6916091e7ec2fcda1a7 (diff)
fix rebuild bug
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/action/_build.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua
index c644c223a..748ed54e1 100644
--- a/xmake/scripts/action/_build.lua
+++ b/xmake/scripts/action/_build.lua
@@ -48,15 +48,6 @@ function _build.done()
clean.remove(target_name, true)
end
- -- build target for makefile
- if not makefile.build(target_name) then
- -- error
- print("")
- io.cat(rule.logfile())
- utils.error("build target: %s failed!\n", target_name)
- return false
- end
-
-- clear rebuild mark and save configure to file
if config.get("__rebuild") then
@@ -70,6 +61,15 @@ function _build.done()
end
end
+ -- build target for makefile
+ if not makefile.build(target_name) then
+ -- error
+ print("")
+ io.cat(rule.logfile())
+ utils.error("build target: %s failed!\n", target_name)
+ return false
+ end
+
-- ok
print("build ok!")
return true