From c16c8acae13e1a3b29b222fdb0be11244dc65937 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 12 Oct 2020 16:02:48 -0400 Subject: [PATCH] Include `llvm-dis`, `llc` and `opt` in `llvm-tools-preview` component Fixes #55890 It's useful to have `llc` and `opt` available when debugging an LLVM miscompilation,. --- src/bootstrap/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index bf81c4bf28e37..90bde2d99780f 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -177,6 +177,9 @@ const LLVM_TOOLS: &[&str] = &[ "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 + "llvm-dis", // used to disassemble LLVM bitcode + "llc", // used to compile LLVM bytecode + "opt", // used to optimize LLVM bytecode ]; /// A structure representing a Rust compiler.