File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 35
35
// differentiate these targets from our other `arm(v7)-*-*-gnueabi(hf)` targets in the context of
36
36
// build scripts / gcc flags.
37
37
38
- use target :: TargetOptions ;
38
+ use PanicStrategy ;
39
39
use std:: default:: Default ;
40
+ use target:: TargetOptions ;
40
41
41
42
pub fn opts ( ) -> TargetOptions {
42
43
// See rust-lang/rfcs#1645 for a discussion about these defaults
@@ -47,7 +48,7 @@ pub fn opts() -> TargetOptions {
47
48
linker : "arm-none-eabi-gcc" . to_string ( ) ,
48
49
// Because these devices have very little resources having an unwinder is too onerous so we
49
50
// default to "abort" because the "unwind" strategy is very rare.
50
- panic_strategy : "abort" . to_string ( ) ,
51
+ panic_strategy : PanicStrategy :: Abort ,
51
52
// Similarly, one almost always never wants to use relocatable code because of the extra
52
53
// costs it involves.
53
54
relocation_model : "static" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments