Skip to content

Commit 8e6e2dc

Browse files
committed
Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe.
1 parent b7091ec commit 8e6e2dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ fn new_context<'gcc, 'tcx>(tcx: TyCtxt<'tcx>) -> Context<'gcc> {
289289
}
290290

291291
impl ExtraBackendMethods for GccCodegenBackend {
292+
fn supports_parallel(&self) -> bool {
293+
false
294+
}
295+
292296
fn codegen_allocator(
293297
&self,
294298
tcx: TyCtxt<'_>,

0 commit comments

Comments
 (0)