diff options
| author | ruki <[email protected]> | 2025-05-06 11:23:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-06 11:23:37 +0800 |
| commit | a4d1b8c7ee7caa4d48ce8182e948e5058c005ec0 (patch) | |
| tree | 3aa9ce8ee37c9824bc0923bae16edc6f6be9306f /xmake/modules | |
| parent | 9fa95319d2701e0cbf983f14549a29c26dc68498 (diff) | |
| parent | 255102b4a1f85d88e1ccd3dccc3c2c3135bbf274 (diff) | |
Merge pull request #6381 from Arthapz/fix-llvm-cmake-windows
(cmake, llvm toolchain) when using --toolchain=llvm on windows, dependencies should be build with it
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index d0055422d..64f7bea3a 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -452,10 +452,10 @@ function _get_configs_for_windows(package, configs, opt) end -- use clang-cl - if package:has_tool("cc", "clang_cl") then + if package:has_tool("cc", "clang", "clang_cl") then table.insert(configs, "-DCMAKE_C_COMPILER=" .. _translate_bin_path(package:build_getenv("cc"))) end - if package:has_tool("cxx", "clang_cl") then + if package:has_tool("cxx", "clang", "clang_cl") then table.insert(configs, "-DCMAKE_CXX_COMPILER=" .. _translate_bin_path(package:build_getenv("cxx"))) end |
