summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-31 14:27:09 +0800
committerruki <[email protected]>2017-03-31 14:27:09 +0800
commit8f86be7a16e905f0c7223493a2644bde776130c7 (patch)
treea98bd293f04baf71ac4f9068288a1c2ebf538c00
parenta71627d9ebff57e3fa5e36c2c8418a0eb91b6a52 (diff)
fix windows checker config
-rw-r--r--xmake/platforms/windows/check.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua
index 5457cc37d..f37b324bf 100644
--- a/xmake/platforms/windows/check.lua
+++ b/xmake/platforms/windows/check.lua
@@ -324,6 +324,9 @@ function main(kind, toolkind)
-- only check the given tool?
if toolkind then
+ -- import the given config
+ local config = import("core.project." .. kind)
+
-- apply vs envirnoment (maybe config.arch has been updated)
if not _apply_vsenv(config, config.get("vs")) then
return
@@ -333,7 +336,7 @@ function main(kind, toolkind)
environment.enter("toolchains")
-- check it
- checker.toolchain_check(import("core.project." .. kind), toolkind, _toolchains)
+ checker.toolchain_check(config, toolkind, _toolchains)
-- leave environment
environment.leave("toolchains")