Ensure Cranelift errors are reported deterministically
This may also have been the root cause of #1310.
This commit is contained in:
parent
ec92c3e5dc
commit
91655428f9
@ -108,6 +108,8 @@ pub(crate) fn join(
|
||||
|
||||
self.concurrency_limiter.finished();
|
||||
|
||||
sess.abort_if_errors();
|
||||
|
||||
(
|
||||
CodegenResults {
|
||||
modules,
|
||||
@ -411,8 +413,6 @@ pub(crate) fn run_aot(
|
||||
.collect::<Vec<_>>()
|
||||
});
|
||||
|
||||
tcx.sess.abort_if_errors();
|
||||
|
||||
let mut allocator_module = make_module(tcx.sess, &backend_config, "allocator_shim".to_string());
|
||||
let mut allocator_unwind_context = UnwindContext::new(allocator_module.isa(), true);
|
||||
let created_alloc_shim =
|
||||
|
Loading…
Reference in New Issue
Block a user