3 ms·
For the "right tool for the problem", you're right; really, see up-thread where someone posted the one-liner. For MSVC over MinGW/Clang: part of my point here
by chriskrycho 10y ago
For the "right tool for the problem", you're right; really, see up-thread where someone posted the one-liner.
For MSVC over MinGW/Clang: part of my point here was to first learn and then document for the community how you do cross-compilation for MSVC. There are lots of projects out there where being able to link against MSVC is important, and it's also harder than linking against MinGW (which would have just been `rustup target add x86_64-pc-windows-gnu` and `cargo build --release --target=x86_64-pc-windows-gnu`, I believe; no extra linker stuff needed), so there's more value in documenting it and putting it out there for MSVC.
- MayeulC 10y agoThanks, I didn't realise that it was meant to be this way. To me, it sounded a bit like MSVC was the only option, and you had to install if for cross compiling. Since this is actually harder to do (from your own post), I worry a bit that a beginner might try to do it right away, to the risk of failing at it.