Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

V2 manifests #33

Merged
merged 26 commits into from
Mar 8, 2016
Merged

V2 manifests #33

merged 26 commits into from
Mar 8, 2016

Conversation

brson
Copy link
Contributor

@brson brson commented Nov 13, 2015

This teaches rustup.sh to read V2 manifests, adds the --with-target flag, which is used during the initial install to pull down additional standard libraries, the --add-target flag, which adds a target to an existing installation, and the --list-available-targets flag, which lists the targets available to an already-installed rust.

This has only been unit tested on Linux, Windows and Mac, not tested live, so don't merge yet.

I'll be happy to squash if this history is too ugly.

r? @alexcrichton cc @edunham

@brson
Copy link
Contributor Author

brson commented Nov 13, 2015

Untabifying made the diff big. Here's one that starts from after untabifying: rust-lang/rustup@3c96043...next

@alexcrichton
Copy link
Contributor

I think that <<< allows specifying a variable as stdin to a command so the routines that are creating a temporary file, reading it in, and then removing it may be able to use that instead? Not entirely sure if that works out with while loops though.

@alexcrichton
Copy link
Contributor

r=me, although as usual wasn't necessarily heavily scrutinized, I trust this plus the level of tests though, so I'm pretty confident it'll work out!

@KennethAdamMiller
Copy link

Supposing you clone and then checkout branch next, and then try to use muslrust for a static build for a run-anywhere capability with:

./rustup.sh --with-target musl --prefix=./muslrust
rustc --target=x86_64-unknown-linux-musl test.rs

you get: error: can't find crate for std

How do I compile a hello world with musl rust if these steps don't work?

brson added a commit that referenced this pull request Mar 8, 2016
@brson brson merged commit b788023 into master Mar 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants