Skip to content

Is it possible to build dotnet with Clang/LLVM on Windows 10 (hopefully with -O3 and -march:native)? #47450

Discussion options

You must be logged in to vote

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.

I'm wondering what the difference would be if I replace MSVC with Clang.

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MineCake147E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants