]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_target/src/spec/powerpc_wrs_vxworks.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / powerpc_wrs_vxworks.rs
index 76709cec59103324963823fe72c94c3aea3c521b..3f24966e06ec74eb50900e9204a8d34bf993ba56 100644 (file)
@@ -3,8 +3,7 @@ use crate::spec::{LinkerFlavor, Target, TargetOptions};
 
 pub fn target() -> Target {
     let mut base = super::vxworks_base::opts();
-    base.pre_link_args.entry(LinkerFlavor::Gcc).or_default().push("-m32".into());
-    base.pre_link_args.entry(LinkerFlavor::Gcc).or_default().push("--secure-plt".into());
+    base.add_pre_link_args(LinkerFlavor::Gcc, &["-m32", "--secure-plt"]);
     base.max_atomic_width = Some(32);
 
     Target {