Cross-compile the std library

Hello,

I'd like to add Rust support for an as-of-yet unsupported OS. From what I can tell it should be possible to cross-compile the std library on a host system (say Linux), using the host compiler. I realize that the library itself will have to gain support for the target OS, but as a first step I'd like to know how to build it stand-alone for a different target.
Is there a recipe for doing that? I found a couple of blog posts suggesting it is doable, but lacking details.

Thanks,
--Elad

Look at the instructions for adding a Tier 3 target, or possibly the +nightly -Z build-std option.

Thanks, I'll give it a try.

--Elad

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.