]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_target/src/spec/i686_pc_windows_gnu.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / i686_pc_windows_gnu.rs
index 4979a5b3bc8485e331530f60ee69655d5419abcb..7002d88c512d77e104e125069406c28ee88205b1 100644 (file)
@@ -12,8 +12,8 @@ pub fn target() -> Target {
     // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
     // space available to x86 Windows binaries on x86_64.
     base.pre_link_args
-        .get_mut(&LinkerFlavor::Gcc)
-        .unwrap()
+        .entry(LinkerFlavor::Gcc)
+        .or_default()
         .push("-Wl,--large-address-aware".to_string());
 
     Target {