Add x86 and x86_64 targets for windows that automatically use rust-lld and doesn't require Visual C++ Build Tools. It's not convenient to always create cargo config or specify linker via any other method.
pc-windows-gnu works without the VC++ Tools using a bundled MingW.
At the current time, using the msvc ABI has a hard requirement on the VC++ Tools (for CRT/unwind startup, IIRC? Something like that).
x86_64-pc-windows-gnu depends on MinGW, so it requires cargo config for using rust-lld as a linker too…
I mean, can we make a target depending only on LLVM tools?
Doesn’t this target require mingw clang?
- Use lld by default on Windows to mitigate Microsoft C++ Build Tools licencing issues
- Pre-RFC: Remove Rust's dependency on Visual Studio in 4 (...complex?) steps
- Visual Studio Build Tools licensing
Summary: LLVM's MSVC abi has a hard coded dependency on MSVC C++ exception handling (for panics). We would either need to reverse engineer that (which is difficult) or else wait for the vcruntime to be open sourced (which might be awhile).
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.