Skip to content

Commit 2f2183e

Browse files
committed
Try lld.
1 parent e5b2865 commit 2f2183e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc_target/spec/xtensa_esp32_none_elf.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::spec::{abi::Abi, LinkerFlavor, PanicStrategy, Target, TargetOptions, TargetResult, RelocModel};
1+
use crate::spec::{abi::Abi, LinkerFlavor, LldFlavor, PanicStrategy, Target, TargetOptions, TargetResult, RelocModel};
22

33
pub fn target() -> TargetResult {
44
Ok(Target {
@@ -11,14 +11,13 @@ pub fn target() -> TargetResult {
1111
target_os: "freertos".to_string(),
1212
target_env: "newlib".to_string(),
1313
target_vendor: "espressif".to_string(),
14-
linker_flavor: LinkerFlavor::Gcc,
14+
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1515

1616
options: TargetOptions {
1717
executables: true,
1818
target_family: Some("unix".to_string()),
1919
cpu: "esp32".to_string(),
20-
linker: Some("xtensa-esp32-elf-gcc".to_string()),
21-
20+
linker: Some("rust-lld".to_string()),
2221
max_atomic_width: Some(32),
2322

2423
// Because these devices have very little resources having an

0 commit comments

Comments
 (0)