File tree 3 files changed +14
-2
lines changed
compiler/rustc_codegen_ssa/src/back
tests/run-make/jobserver-error
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1452,8 +1452,8 @@ fn start_executing_work<B: ExtraBackendMethods>(
1452
1452
Err ( e) => {
1453
1453
let msg = & format ! ( "failed to acquire jobserver token: {}" , e) ;
1454
1454
shared_emitter. fatal ( msg) ;
1455
- // Exit the coordinator thread
1456
- panic ! ( "{}" , msg )
1455
+ codegen_done = true ;
1456
+ codegen_aborted = true ;
1457
1457
}
1458
1458
}
1459
1459
}
Original file line number Diff line number Diff line change
1
+ include ../../run-make-fulldeps/tools.mk
2
+
3
+ # only-linux
4
+
5
+ # Test compiler behavior in case: `jobserver-auth` points to correct pipe which is not jobserver.
6
+
7
+ all :
8
+ bash -c ' echo "fn main() {}" | MAKEFLAGS="--jobserver-auth=3,3" $(RUSTC) - 3</dev/null' 2>&1 | diff jobserver.stderr -
Original file line number Diff line number Diff line change
1
+ error: failed to acquire jobserver token: early EOF on jobserver pipe
2
+
3
+ error: aborting due to previous error
4
+
You can’t perform that action at this time.
0 commit comments