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.)
This commit is contained in:
Josh Triplett 2021-09-19 12:31:36 -07:00 committed by Mike Leany
parent b0d1e3be23
commit 6ab66192f9

View File

@ -10,7 +10,9 @@ pub fn target() -> Target {
let opts = TargetOptions {
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
linker: Some("rust-lld".to_owned()),
features: "-mmx,-sse,+soft-float".to_string(),
features:
"-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
.to_string(),
executables: true,
disable_redzone: true,
panic_strategy: PanicStrategy::Abort,