Skip to content

Commit 584198d

Browse files
committed
Enable lld explicitly for hexagon-unknown-linux-musl
Tested with the https://github.com/quic/toolchain_for_hexagon/releases/tag/v17.0.0-rc3 release of the toolchain.
1 parent e3abbd4 commit 584198d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_target/src/spec/hexagon_unknown_linux_musl.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::spec::{Cc, LinkerFlavor, Target};
1+
use crate::spec::{Cc, LinkerFlavor, Lld, Target};
22

33
pub fn target() -> Target {
44
let mut base = super::linux_musl_base::opts();
@@ -9,7 +9,8 @@ pub fn target() -> Target {
99

1010
base.crt_static_default = false;
1111
base.has_rpath = true;
12-
base.linker_flavor = LinkerFlavor::Unix(Cc::Yes);
12+
base.linker_flavor = LinkerFlavor::Gnu(Cc::No, Lld::Yes);
13+
base.linker = Some("clang".into());
1314

1415
base.c_enum_min_bits = Some(8);
1516

0 commit comments

Comments
 (0)