summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base/config.lua')
-rw-r--r--xmake/scripts/base/config.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua
index 1da6ebbca..3cea6a652 100644
--- a/xmake/scripts/base/config.lua
+++ b/xmake/scripts/base/config.lua
@@ -229,8 +229,8 @@ function config.load()
-- make the current target configs
local current = config._make(configs)
- -- clear configs and mark as "rebuild" and "reconfig" if the host has been changed
- if current and current.host ~= xmake._HOST then
+ -- clear configs and mark as "rebuild" and "reconfig" if the host has been changed
+ if (current and current.host ~= xmake._HOST) then
-- clear configs and mark as "rebuild"
config._CONFIGS = { __rebuild = true }