File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
- use crate :: spec:: Target ;
1
+ use crate :: spec:: { PanicStrategy , Target } ;
2
2
3
3
pub fn target ( ) -> Target {
4
4
let mut base = super :: l4re_base:: opts ( ) ;
5
5
base. cpu = "x86-64" . to_string ( ) ;
6
6
base. max_atomic_width = Some ( 64 ) ;
7
7
base. crt_static_default = true ;
8
+ base. panic_strategy = PanicStrategy :: Abort ;
8
9
9
10
Target {
10
11
llvm_target : "x86_64-unknown-l4re-uclibc" . to_string ( ) ,
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ cfg_if::cfg_if! {
40
40
} else if #[ cfg( target_os = "hermit" ) ] {
41
41
#[ path = "hermit.rs" ]
42
42
mod real_imp;
43
+ } else if #[ cfg( target_os = "l4re" ) ] {
44
+ // L4Re is unix family but does not yet support unwinding.
45
+ #[ path = "dummy.rs" ]
46
+ mod real_imp;
43
47
} else if #[ cfg( target_env = "msvc" ) ] {
44
48
#[ path = "seh.rs" ]
45
49
mod real_imp;
You can’t perform that action at this time.
0 commit comments