diff options
| author | ruki <[email protected]> | 2016-06-02 09:42:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-02 09:42:28 +0800 |
| commit | b54dc3258ad1712451fce0b5ce820b3eb4d3debe (patch) | |
| tree | a8e6dfbd24efe07a0e742dc1e117953a57826213 | |
| parent | 5c4e11744a8c181be6f96048f94289dbdc8df38b (diff) | |
fix auto-rebuild bug
| -rwxr-xr-x | xmake/actions/config/main.lua | 10 |
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) |
