diff options
| author | CKingX <CKingX@users.noreply.github.com> | 2024-02-08 17:15:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 17:15:11 -0800 |
| commit | d51e703534c49b5b658a954fe6d387c33ba0c5e3 (patch) | |
| tree | d6967e82b6eee789f7b697cbddec6c2ec0b18f18 | |
| parent | 98aa3624be70462d6a25ed5544333e3df62f4c66 (diff) | |
| download | rust-d51e703534c49b5b658a954fe6d387c33ba0c5e3.tar.gz rust-d51e703534c49b5b658a954fe6d387c33ba0c5e3.zip | |
As Windows 10 requires certain features like CMPXCHG16B and a few others and Rust plans to set Windows 10 as the minimum supported OS for target x86_64-pc-windows-msvc, I have added the cmpxchg16b and sse3 feature (as CPUs that meet the Windows 10 64-bit requirement also support SSE3. See https://walbourn.github.io/directxmath-sse3-and-ssse3/ )
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/x86_64_pc_windows_msvc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_pc_windows_msvc.rs b/compiler/rustc_target/src/spec/targets/x86_64_pc_windows_msvc.rs index 357261073a8..e3db187e7eb 100644 --- a/compiler/rustc_target/src/spec/targets/x86_64_pc_windows_msvc.rs +++ b/compiler/rustc_target/src/spec/targets/x86_64_pc_windows_msvc.rs @@ -3,6 +3,7 @@ use crate::spec::{base, SanitizerSet, Target}; pub fn target() -> Target { let mut base = base::windows_msvc::opts(); base.cpu = "x86-64".into(); + base.features = "+cmpxchg16b,+sse3".into(); base.plt_by_default = false; base.max_atomic_width = Some(64); base.supported_sanitizers = SanitizerSet::ADDRESS; |
