]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/spec/thumbv7em_none_eabihf.rs
change the default linker of the ARM Cortex-M targets
[rust.git] / src / librustc_target / spec / thumbv7em_none_eabihf.rs
index bb1a42f0e289ec89109daa2f71c804059f660824..02ede112ed3c649d14decc5bf58c12ad740c6068 100644 (file)
@@ -18,7 +18,7 @@
 //
 // To opt into double precision hardware support, use the `-C target-feature=-fp-only-sp` flag.
 
-use spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
+use spec::{LinkerFlavor, LldFlavor, Target, TargetOptions, TargetResult};
 
 pub fn target() -> TargetResult {
     Ok(Target {
@@ -31,7 +31,7 @@ pub fn target() -> TargetResult {
         target_os: "none".to_string(),
         target_env: String::new(),
         target_vendor: String::new(),
-        linker_flavor: LinkerFlavor::Gcc,
+        linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
 
         options: TargetOptions {
             // `+vfp4` is the lowest common denominator between the Cortex-M4 (vfp4-16) and the