]> git.lizzy.rs Git - rust.git/commit
Auto merge of #51728 - bradjc:llvm-tools2, r=kennytm
authorbors <bors@rust-lang.org>
Mon, 25 Jun 2018 17:22:12 +0000 (17:22 +0000)
committerbors <bors@rust-lang.org>
Mon, 25 Jun 2018 17:22:12 +0000 (17:22 +0000)
commitb7c6e8f1805cd8a4b0a1c1f22f17a89e9e2cea23
tree900d5440d16c5ad7a996e07958fcefcf0113dc14
parent8acec1f9d0b40dde142e6c26d7358b9ab232d2b4
parentf10da5fdb9f08a70d2917aadf51c1e7952b9027b
Auto merge of #51728 - bradjc:llvm-tools2, r=kennytm

build: add llvm-tools to manifest

This commit expands on a previous commit to build llvm-tools as a rustup component. It causes the llvm-tools component to be built if the extended step is active. It also adds llvm-tools to the build manifest so rustup can find it.

I tested this as far as I could, but had to hack `build-manifest/src/main.rs` a bit as it is not supported on MacOS. The main change I am not sure about is this line:

```rust
self.package("llvm-tools", &mut manifest.pkg, TARGETS);
```

There are numerous calls to `self.package()`, and I'm not sure if `TARGETS`, `HOSTS`, or `["*"]` is appropriate for llvm-tools.

Otherwise I mostly copied the example set by `rustfmt-preview`.