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