Skip to content

Commit cd6b1ea

Browse files
committed
Error out if a GCC cross-compiler cannot be found
1 parent 3ccf433 commit cd6b1ea

File tree

1 file changed

+9
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+9
-0
lines changed

src/bootstrap/src/core/build_steps/gcc.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ pub fn get_gcc_build_status(builder: &Builder<'_>, target_pair: GccTargetPair) -
216216
"libgccjit.so for `{target_pair}` was not found at `{}`",
217217
path.display()
218218
));
219+
220+
if target_pair.host != target_pair.target || target_pair.host != builder.host_target {
221+
eprintln!(
222+
"info: libgccjit.so for `{target_pair}` was not found at `{}`",
223+
path.display()
224+
);
225+
eprintln!("error: we do not support downloading or building a GCC cross-compiler");
226+
std::process::exit(1);
227+
}
219228
}
220229
}
221230

0 commit comments

Comments
 (0)