Skip to content

Commit

Permalink
Enable lld explicitly for hexagon-unknown-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
androm3da committed Sep 6, 2023
1 parent e3abbd4 commit 29b4f94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions compiler/rustc_target/src/spec/hexagon_unknown_linux_musl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::spec::{Cc, LinkerFlavor, Target};
use crate::spec::{Cc, LinkerFlavor, Lld, Target};

pub fn target() -> Target {
let mut base = super::linux_musl_base::opts();
Expand All @@ -9,7 +9,11 @@ pub fn target() -> Target {

base.crt_static_default = false;
base.has_rpath = true;
base.linker_flavor = LinkerFlavor::Unix(Cc::Yes);
base.linker_flavor = LinkerFlavor::Gnu(Cc::No, Lld::Yes);
base.dynamic_linking = true;
base.linker = Some("clang".into());
base.no_default_libraries = false;
base.has_thread_local = true;

base.c_enum_min_bits = Some(8);

Expand Down

0 comments on commit 29b4f94

Please sign in to comment.