Skip to content

Commit 6ab6619

Browse files
joshtriplettmikeleany
authored andcommitted
x86_64-unknown-none: Disable more target features
Based on the list used for x86_64-unknown-none-linuxkernel. (Work on this target sponsored by Profian.)
1 parent b0d1e3b commit 6ab6619

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/x86_64_unknown_none.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ pub fn target() -> Target {
1010
let opts = TargetOptions {
1111
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1212
linker: Some("rust-lld".to_owned()),
13-
features: "-mmx,-sse,+soft-float".to_string(),
13+
features:
14+
"-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
15+
.to_string(),
1416
executables: true,
1517
disable_redzone: true,
1618
panic_strategy: PanicStrategy::Abort,

0 commit comments

Comments
 (0)