From 3aab30fc254ae7e9bd138aff2bb263af0d447017 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 27 May 2015 09:32:01 +0800 Subject: add prober to all platforms --- xmake/scripts/base/config.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake/scripts/base/config.lua') diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua index e6b4dbfdd..bf201db4b 100644 --- a/xmake/scripts/base/config.lua +++ b/xmake/scripts/base/config.lua @@ -291,11 +291,16 @@ function config.loadxconf() -- save configs config._CONFIGS = newenv._CONFIGS - -- clear configs if the host environment has been changed + -- clear configs if the host has been changed local target = config._target() if target and target.host ~= xmake._HOST then 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 + config._CONFIGS = {} + end end -- the target name -- cgit v1.3.1