File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1974,7 +1974,7 @@ impl Step for Assemble {
1974
1974
}
1975
1975
}
1976
1976
1977
- let maybe_install_llvm_bitcode_linker = |compiler| {
1977
+ let maybe_install_llvm_bitcode_linker = |compiler : Compiler | {
1978
1978
if builder. config . llvm_bitcode_linker_enabled {
1979
1979
trace ! ( "llvm-bitcode-linker enabled, installing" ) ;
1980
1980
let src_path = builder. ensure ( crate :: core:: build_steps:: tool:: LlvmBitcodeLinker {
@@ -2182,7 +2182,7 @@ impl Step for Assemble {
2182
2182
) ;
2183
2183
}
2184
2184
2185
- maybe_install_llvm_bitcode_linker ( build_compiler ) ;
2185
+ maybe_install_llvm_bitcode_linker ( target_compiler ) ;
2186
2186
2187
2187
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,
2188
2188
// so that it can be found when the newly built `rustc` is run.
Original file line number Diff line number Diff line change @@ -77,10 +77,7 @@ impl Step for ToolBuild {
77
77
fn run ( mut self , builder : & Builder < ' _ > ) -> PathBuf {
78
78
match self . mode {
79
79
Mode :: ToolRustc => {
80
- assert ! (
81
- self . compiler. stage > 0 ,
82
- "stage0 isn't supported for `Mode::ToolRustc` programs"
83
- ) ;
80
+ assert ! ( self . compiler. stage > 0 , "stage0 isn't supported for {}" , self . path) ;
84
81
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
85
82
// we'd have stageN/bin/rustc and stageN/bin/$tool_name be effectively different stage
86
83
// compilers, which isn't what we want.
You can’t perform that action at this time.
0 commit comments