Skip to content

Commit b98a91e

Browse files
committed
Error out if a GCC cross-compiler cannot be found
1 parent 8f03540 commit b98a91e

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
@@ -217,6 +217,15 @@ pub fn get_gcc_build_status(builder: &Builder<'_>, target_pair: GccTargetPair) -
217217
"libgccjit.so for `{target_pair}` was not found at `{}`",
218218
path.display()
219219
));
220+
221+
if target_pair.host != target_pair.target || target_pair.host != builder.host_target {
222+
eprintln!(
223+
"info: libgccjit.so for `{target_pair}` was not found at `{}`",
224+
path.display()
225+
);
226+
eprintln!("error: we do not support downloading or building a GCC cross-compiler");
227+
std::process::exit(1);
228+
}
220229
}
221230
}
222231

0 commit comments

Comments
 (0)