Skip to content

Commit 2676637

Browse files
committed
compiler: Hermit targets: Remove pre-link args.
These pre-link args are remains from Hermit's old C version. We don't need them and we have no reason to override the defaults here. See ld [1] for details. [1]: https://sourceware.org/binutils/docs/ld/Options.html Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent 8771282 commit 2676637

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/rustc_target/src/spec/hermit_base.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, TargetOptions, TlsModel};
22

33
pub fn opts() -> TargetOptions {
4-
let pre_link_args = TargetOptions::link_args(
5-
LinkerFlavor::Gnu(Cc::No, Lld::No),
6-
&["--build-id", "--hash-style=gnu", "--Bstatic"],
7-
);
8-
94
TargetOptions {
105
os: "hermit".into(),
116
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
127
linker: Some("rust-lld".into()),
138
has_thread_local: true,
14-
pre_link_args,
159
panic_strategy: PanicStrategy::Abort,
1610
position_independent_executables: true,
1711
static_position_independent_executables: true,

0 commit comments

Comments
 (0)