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 11, 2023
1 parent e3abbd4 commit 584198d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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,8 @@ 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.linker = Some("clang".into());

base.c_enum_min_bits = Some(8);

Expand Down

0 comments on commit 584198d

Please sign in to comment.