From b54dc3258ad1712451fce0b5ce820b3eb4d3debe Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Jun 2016 09:42:28 +0800 Subject: fix auto-rebuild bug --- xmake/actions/config/main.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 6ba35ee66..8146fbdbd 100755 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -136,8 +136,15 @@ function main() -- merge the checked configure local recheck = _need_check() if recheck then + + -- check configure config.check() + + -- check project options project.check() + + -- rebuild it + cache.set("rebuild", true) end -- merge the cached configure @@ -162,9 +169,6 @@ function main() raise("unknown target: %s", targetname) end - -- need rebuild it - cache.set("rebuild", recheck) - -- save options cache.set("options_" .. targetname, options) -- cgit v1.3.1