diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-01-03 16:08:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-03 16:08:33 +0100 |
| commit | 9b2a44adc228e3a583c29f621975fde75ca9b80f (patch) | |
| tree | 850ac07d2e6a3a8e9dbaf7119213c2bde12dd218 | |
| parent | a79fccc288adca3006dfa2c4320885c328a53230 (diff) | |
| parent | d9d23fa68d9b6349c01ff1f06e34f9ca384cdc97 (diff) | |
| download | rust-9b2a44adc228e3a583c29f621975fde75ca9b80f.tar.gz rust-9b2a44adc228e3a583c29f621975fde75ca9b80f.zip | |
Rollup merge of #119544 - roblabla:new-win7-targets, r=Nilstrieb
Fix: Properly set vendor in i686-win7-windows-msvc target In #118150 , setting the `vendor` field of the `i686-win7-windows-msvc` target was forgotten, preventing us from easily checking the target using `cfg(target_vendor)`. With this PR, we set the target vendor to "win7".
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/i686_win7_windows_msvc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/targets/i686_win7_windows_msvc.rs b/compiler/rustc_target/src/spec/targets/i686_win7_windows_msvc.rs index ba80c23196e..5b91682e168 100644 --- a/compiler/rustc_target/src/spec/targets/i686_win7_windows_msvc.rs +++ b/compiler/rustc_target/src/spec/targets/i686_win7_windows_msvc.rs @@ -4,6 +4,7 @@ pub fn target() -> Target { let mut base = base::windows_msvc::opts(); base.cpu = "pentium4".into(); base.max_atomic_width = Some(64); + base.vendor = "win7".into(); base.add_pre_link_args( LinkerFlavor::Msvc(Lld::No), |
