summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-02 09:42:28 +0800
committerruki <[email protected]>2016-06-02 09:42:28 +0800
commitb54dc3258ad1712451fce0b5ce820b3eb4d3debe (patch)
treea8e6dfbd24efe07a0e742dc1e117953a57826213
parent5c4e11744a8c181be6f96048f94289dbdc8df38b (diff)
fix auto-rebuild bug
-rwxr-xr-xxmake/actions/config/main.lua10
1 files 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)