From 5aa1e3e13876809ff14264429ad98fa3d5457b99 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 15 Jun 2015 16:17:54 +0800 Subject: fix rebuild bug --- xmake/scripts/action/_build.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'xmake/scripts/action/_build.lua') 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 -- cgit v1.3.1