Skip to content

Commit 29b4f94

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 29b4f94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compiler/rustc_target/src/spec/hexagon_unknown_linux_musl.rs

+6-2
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,11 @@ 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.dynamic_linking = true;
14+
base.linker = Some("clang".into());
15+
base.no_default_libraries = false;
16+
base.has_thread_local = true;
1317

1418
base.c_enum_min_bits = Some(8);
1519

0 commit comments

Comments
 (0)