Use llvm instead of MSVC

How can I use the llvm instead of the MSVC toolchain?
If so what toolchains and targets do I need to install.

Thank you in advance.

The Rust compiler uses the LLVM backend on every toolchains. But you need the Microsoft Visual C++ toolchain and included linker and system libraries to run Microsoft Windows native binaries. You can relies on some abstraction layer which does relies on the MSVC toolchain underneath, like pc-windows-gnu toolchain.

Can I use the llvm linker to build the binaries?

Have a look at this issue against the Rust repo, it's about using LLVM's linker (lld) for linking.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.