This repository was archived by the owner on Nov 21, 2018. It is now read-only.
prepare for rustc for mips-gnu, mipsel-gnu, ppc64-gnu and ppc64el-gnu #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Just (*) by setting these env vars I could can use this command:
to build rustc for these targets.
(*) for ppc64, I additionally installed g++ for ppc64 because I didn't want to mess with CFLAGS
(i.e.
-m64
).I tested building rustc for each target. Then tested, under QEMU, that each (**) cross compiled
rustc could, itself, compile the "smallest hello" program (see code below). And, finally, I executed the smallest hello binary that was "natively" (under QEMU, withouth
--target
flag) compiled by the foreginrustc
.The commands looked like this:
(**) I couldn't test the ppc64el target because qemu-ppc64el segfaulted with every binary I threw at
it (I even tried this C program:
int main() { return 0; }
). But rustc did successfully cross compile for that target.r? @alexcrichton