From 2a76eb4639af33cac5adf07be29abae34e5614bd Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Jun 2023 23:30:15 +0800 Subject: pass toolchain for windows --- xmake/modules/package/tools/xmake.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 47fd64c51..c138e770e 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -86,6 +86,11 @@ function _get_configs_for_windows(package, configs, opt) end _get_configs_for_qt(package, configs, opt) _get_configs_for_vcpkg(package, configs, opt) + + -- we can switch some toolchains, e.g. llvm/clang + if package:config("toolchains") and _is_toolchain_compatible_with_host(package) then + _get_configs_for_host_toolchain(package, configs, opt) + end end -- get configs for appleos -- cgit v1.3.1