diff options
| author | ruki <[email protected]> | 2023-06-06 23:30:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-06 23:30:15 +0800 |
| commit | 2a76eb4639af33cac5adf07be29abae34e5614bd (patch) | |
| tree | c1503c4fb3c690e4048aa157f93a44c84606a5cb /xmake/modules/package/tools/xmake.lua | |
| parent | 8d76e8be9743a661715bc8731a5be73eca49ea8c (diff) | |
pass toolchain for windows
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
