]> git.lizzy.rs Git - rust.git/commit
Auto merge of #36292 - japaric:musl-root, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 7 Sep 2016 22:45:14 +0000 (15:45 -0700)
committerGitHub <noreply@github.com>
Wed, 7 Sep 2016 22:45:14 +0000 (15:45 -0700)
commita7b2232d20320dc3b4044a2aec1d51a129e7e17d
tree1b04fa3fb7c69183e8254b76c089f4bff8803e1f
parent9627e9ef6e0183e50b6a985143d31d82bda31cfe
parent8cfc69ecea9874ad28253ecc47d50099f9e7001e
Auto merge of #36292 - japaric:musl-root, r=alexcrichton

rustbuild: per target musl-root

config.toml now accepts a target.$TARGET.musl-root key that lets you
override the "build" musl-root value, which is set via the --musl-root
flag or via the build.musl-root key.

With this change, it's now possible to compile std for several musl
targets at once. Here's are the sample commands to do such thing:

```
$ configure \
    --enable-rustbuild \
    --target=x86_64-unknown-linux-musl,arm-unknown-linux-musleabi \
    --musl-root=/musl/x86_64-unknown-linux-musl/

$ edit config.toml && tail config.toml
[target.arm-unknown-linux-musleabi]
musl-root = "/x-tools/arm-unknown-linux-musleabi/arm-unknown-linux-musleabi/sysroot/usr"

$ make
```

r? @alexcrichton
With this we should be able to start producing releases of std for arm musl targets
src/bootstrap/compile.rs
src/bootstrap/config.rs
src/bootstrap/config.toml.example