Skip to content

Commit e04b7b8

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#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 rust-lang#58663
2 parents dcd531e + 45e9acc commit e04b7b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ const LLVM_TOOLS: &[&str] = &[
190190
"llvm-readobj", // used to get information from ELFs/objects that the other tools don't provide
191191
"llvm-size", // used to prints the size of the linker sections of a program
192192
"llvm-strip", // used to discard symbols from binary files to reduce their size
193+
"llvm-ar" // used for creating and modifying archive files
193194
];
194195

195196
/// A structure representing a Rust compiler.

0 commit comments

Comments
 (0)