Is it possible to build dotnet with Clang/LLVM on Windows 10 (hopefully with -O3 and -march:native)? #47450
-
I'm wondering what the difference would be if I replace MSVC with Clang. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
CMake is used to compile native components. Windows and non-Windows platforms uses different bootstrap scripts. The Unix script has a switch to pass GCC to CMake. Windows script seems hard-codes MSVC.
As a hosting runtime, ABI and calling convention are extremely important for CLR. Clang supports MSVC ABI, so it remains possible. CMake is invoked at src/coreclr/build-runtime.cmd |
Beta Was this translation helpful? Give feedback.
CMake is used to compile native components.
Windows and non-Windows platforms uses different bootstrap scripts. The Unix script has a switch to pass GCC to CMake. Windows script seems hard-codes MSVC.
As a hosting runtime, ABI and calling convention are extremely important for CLR. Clang supports MSVC ABI, so it remains possible.
CMake is invoked at src/coreclr/build-runtime.cmd