Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7be0b87

Browse files
authored
Update thumbv4t_none_eabi.rs
1 parent 86ab4a0 commit 7be0b87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,21 @@ pub fn target() -> Target {
4646

4747
// minimum extra features, these cannot be disabled via -C
4848
features: "+soft-float,+strict-align".into(),
49+
50+
panic_strategy: PanicStrategy::Abort,
51+
relocation_model: RelocModel::Static,
52+
// suggested from thumb_base, rust-lang/rust#44993.
53+
emit_debug_gdb_scripts: false,
54+
// suggested from thumb_base, with no-os gcc/clang use 8-bit enums
55+
c_enum_min_bits: 8,
4956

5057
main_needs_argc_argv: false,
5158

5259
// don't have atomic compare-and-swap
5360
atomic_cas: false,
5461
has_thumb_interworking: true,
5562

56-
..super::thumb_base::opts()
63+
..Default::default()
5764
},
5865
}
5966
}

0 commit comments

Comments
 (0)