rustc (similarly to clang) has a --target option and both rustc and cargo documentations clearly suggest that single build can build for multiple targets. However:
First, is there some way I can ask the compiler which targets it can build and which it can build?
And second, I have the pre-built nightly rust,
x86_64-unknown-linux-gnu build, installed. I also have native gcc and clang with multilib support and
i686-w64-mingw32 gcc cross-compiler. My native clang accepts all of
--target=i686-w64-mingw32 and builds the correct products (modulo correct default extensions).
So what do I need to do to get
rustc capable of building the same targets?
Update: Web search did not seem to turn up anything that would look like documentation, but I eventually got to 6b130e3d that tells me the corresponding targets are called
i686-pc-windows-gnu. And then rustc tells me:
test.rs:1:1: 1:1 error: can't find crate for `std`
Can I just unpack them from the other archives?