diff options
Diffstat (limited to 'xmake/actions/config/main.lua')
| -rw-r--r-- | xmake/actions/config/main.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index f6b9e4b5b..5af867f5a 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -85,6 +85,14 @@ function _need_check(changed) end end + -- xmake has been updated? force to check config again + -- we need clean the dirty config cache of the old version + if not changed then + if os.mtime(path.join(os.programdir(), "core", "main.lua")) > os.mtime(config.filepath()) then + changed = true + end + end + -- update mtimes configcache:set("mtimes", mtimes) @@ -241,7 +249,9 @@ force to build in current directory via run `xmake -P .`]], os.projectdir()) config.check() -- check project options - project.check() + if not trybuild then + project.check() + end end -- load platform |
