Skip to content

Commit 61c0a2c

Browse files
Rollup merge of #78947 - dalance:llvm_cov, r=Mark-Simulacrum
Ship llvm-cov through llvm-tools `llvm-cov` is used to generate coverage report with LLVM InstrProf-based code coverage #34701. So if `llvm-cov` is shipped through llvm-tools, users can try it easily accorging to the instruction of [The Rust Unstable Book](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/source-based-code-coverage.html).
2 parents f311458 + 2453ce7 commit 61c0a2c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/bootstrap/lib.rs

+11-10
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,18 @@ pub use crate::config::Config;
169169
pub use crate::flags::Subcommand;
170170

171171
const LLVM_TOOLS: &[&str] = &[
172-
"llvm-nm", // used to inspect binaries; it shows symbol names, their sizes and visibility
173-
"llvm-objcopy", // used to transform ELFs into binary format which flashing tools consume
174-
"llvm-objdump", // used to disassemble programs
172+
"llvm-cov", // used to generate coverage report
173+
"llvm-nm", // used to inspect binaries; it shows symbol names, their sizes and visibility
174+
"llvm-objcopy", // used to transform ELFs into binary format which flashing tools consume
175+
"llvm-objdump", // used to disassemble programs
175176
"llvm-profdata", // used to inspect and merge files generated by profiles
176-
"llvm-readobj", // used to get information from ELFs/objects that the other tools don't provide
177-
"llvm-size", // used to prints the size of the linker sections of a program
178-
"llvm-strip", // used to discard symbols from binary files to reduce their size
179-
"llvm-ar", // used for creating and modifying archive files
180-
"llvm-dis", // used to disassemble LLVM bitcode
181-
"llc", // used to compile LLVM bytecode
182-
"opt", // used to optimize LLVM bytecode
177+
"llvm-readobj", // used to get information from ELFs/objects that the other tools don't provide
178+
"llvm-size", // used to prints the size of the linker sections of a program
179+
"llvm-strip", // used to discard symbols from binary files to reduce their size
180+
"llvm-ar", // used for creating and modifying archive files
181+
"llvm-dis", // used to disassemble LLVM bitcode
182+
"llc", // used to compile LLVM bytecode
183+
"opt", // used to optimize LLVM bytecode
183184
];
184185

185186
pub const VERSION: usize = 2;

0 commit comments

Comments
 (0)