[llvm] Build clang with the latest released clang on Windows on Arm. (PR #116701)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 02:09:43 PST 2024
================
@@ -2,7 +2,7 @@
# Invokes config.guess
function( get_host_triple var )
- if( MSVC )
+ if(MSVC OR (CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND CMAKE_C_COMPILER_ID MATCHES "Clang"))
----------------
mstorsjo wrote:
This isn't about `CMAKE_HOST_SYSTEM_NAME`, it's about the target, so we should check `CMAKE_SYSTEM_NAME` instead - to make it work as expected and intended for cross compilation.
The existing check below which checks `CMAKE_HOST_SYSTEM_NAME` is for determining whether it will be possible to execute a shell script, where we do need to check the host environment.
https://github.com/llvm/llvm-project/pull/116701
More information about the llvm-commits
mailing list