diff options
| -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 |
