summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-02 15:39:44 +0800
committerruki <[email protected]>2015-06-02 15:39:44 +0800
commitf639faef588a95b28ec02c781dee2a581f7a7992 (patch)
treefb50924f053cf26b9ad53c46c440aceeb82f8e45 /xmake/scripts/base/config.lua
parent6ed13d09ec37896b0176e90ddaa99c90ecaccd1d (diff)
impl rebuild and update
Diffstat (limited to 'xmake/scripts/base/config.lua')
-rw-r--r--xmake/scripts/base/config.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua
index 6eb0b242c..877f7d026 100644
--- a/xmake/scripts/base/config.lua
+++ b/xmake/scripts/base/config.lua
@@ -300,11 +300,13 @@ function config.loadxconf()
-- clear configs if the host has been changed
local target = config._target()
if target and target.host ~= xmake._HOST then
+ -- clear configs
config._CONFIGS = {}
end
-- clear configs if the plat has been changed
if target and target.plat and options.plat and target.plat ~= options.plat then
+ -- clear configs
config._CONFIGS = {}
end
end