File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ fn build_clif_sysroot_for_triple(
241
241
}
242
242
243
243
// Build sysroot
244
- let mut rustflags = vec ! [ "-Zforce-unstable-if-unmarked" . to_owned( ) , "-Cpanic=abort" . to_owned ( ) ] ;
244
+ let mut rustflags = vec ! [ "-Zforce-unstable-if-unmarked" . to_owned( ) ] ;
245
245
match cg_clif_dylib_path {
246
246
CodegenBackend :: Local ( path) => {
247
247
rustflags. push ( format ! ( "-Zcodegen-backend={}" , path. to_str( ) . unwrap( ) ) ) ;
Original file line number Diff line number Diff line change @@ -443,7 +443,6 @@ impl<'a> TestRunner<'a> {
443
443
cmd. arg ( "-Cdebuginfo=2" ) ;
444
444
cmd. arg ( "--target" ) ;
445
445
cmd. arg ( & self . target_compiler . triple ) ;
446
- cmd. arg ( "-Cpanic=abort" ) ;
447
446
cmd. arg ( "-Zunstable-options" ) ;
448
447
cmd. arg ( "--check-cfg=cfg(jit)" ) ;
449
448
cmd. args ( args) ;
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
23
23
core:: intrinsics:: abort ( ) ;
24
24
}
25
25
26
+ #[ lang = "eh_personality" ]
27
+ fn eh_personality ( ) -> ! {
28
+ core:: intrinsics:: abort ( ) ;
29
+ }
30
+
26
31
#[ alloc_error_handler]
27
32
fn alloc_error_handler ( _: alloc:: alloc:: Layout ) -> ! {
28
33
core:: intrinsics:: abort ( ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn main() {
12
12
sysroot = sysroot. parent ( ) . unwrap ( ) ;
13
13
}
14
14
15
- let mut rustflags = vec ! [ "-Cpanic=abort" . to_owned ( ) , "-Zpanic-abort-tests" . to_owned ( ) ] ;
15
+ let mut rustflags = vec ! [ ] ;
16
16
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
17
17
rustflags. push ( format ! ( "-Zcodegen-backend={name}" ) ) ;
18
18
} else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
17
17
18
18
let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
19
19
let mut args = vec ! [ ] ;
20
- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21
- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
22
20
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
23
21
args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
24
22
} else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
17
17
18
18
let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
19
19
let mut args = vec ! [ ] ;
20
- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21
- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
22
20
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
23
21
args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
24
22
} else {
You can’t perform that action at this time.
0 commit comments