1
Fork 0

Update x86_64_pc_windows_msvc.rs

Fixed a bug where adding CMPXCHG16B would fail due to different names in Rustc and LLVM
This commit is contained in:
CKingX 2024-02-09 07:59:38 -08:00 committed by GitHub
parent d51e703534
commit d6766e2bc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ use crate::spec::{base, SanitizerSet, Target};
pub fn target() -> Target { pub fn target() -> Target {
let mut base = base::windows_msvc::opts(); let mut base = base::windows_msvc::opts();
base.cpu = "x86-64".into(); base.cpu = "x86-64".into();
base.features = "+cmpxchg16b,+sse3".into(); base.features = "+cx16,+sse3".into();
base.plt_by_default = false; base.plt_by_default = false;
base.max_atomic_width = Some(64); base.max_atomic_width = Some(64);
base.supported_sanitizers = SanitizerSet::ADDRESS; base.supported_sanitizers = SanitizerSet::ADDRESS;