diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-03-28 08:43:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 08:43:34 +0100 |
| commit | e04b7b8f54e556d514e356f9086085b471637254 (patch) | |
| tree | fe7596f73638fc41aa1ec59196670123be0a68eb | |
| parent | dcd531ea15252725ad2858b7b0f9c0a0882ff536 (diff) | |
| parent | 45e9accecb18cbdbadad05abeed860f68d7a46f3 (diff) | |
| download | rust-e04b7b8f54e556d514e356f9086085b471637254.tar.gz rust-e04b7b8f54e556d514e356f9086085b471637254.zip | |
Rollup merge of #59351 - phil-opp:llvm-ar, r=alexcrichton
Include llvm-ar with llvm-tools component Adds the `llvm-ar` tool to the `llvm-tools` component. This is useful for [building and linking native code](https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-building-some-native-code) in cargo build scripts without needing to use the platform specific `ar`. According to #58663 it is also useful for WASM. `llvm-ar` is very small (~82KB), so it does not significantly increase the size of the `llvm-tools` component. Fixes #58663
| -rw-r--r-- | src/bootstrap/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 0c3daea7a3c..d245b3e98d3 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -190,6 +190,7 @@ const LLVM_TOOLS: &[&str] = &[ "llvm-readobj", // used to get information from ELFs/objects that the other tools don't provide "llvm-size", // used to prints the size of the linker sections of a program "llvm-strip", // used to discard symbols from binary files to reduce their size + "llvm-ar" // used for creating and modifying archive files ]; /// A structure representing a Rust compiler. |
