Skip to content

Commit 3221a5e

Browse files
committed
Remove linker_is_gnu: true cases as that is now the default.
1 parent 0188664 commit 3221a5e

20 files changed

+0
-20
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_none.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub fn target() -> Target {
1616
executables: true,
1717
relocation_model: RelocModel::Static,
1818
disable_redzone: true,
19-
linker_is_gnu: true,
2019
max_atomic_width: Some(128),
2120
panic_strategy: PanicStrategy::Abort,
2221
unsupported_abis: super::arm_base::unsupported_abis(),

compiler/rustc_target/src/spec/aarch64_unknown_none_softfloat.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub fn target() -> Target {
1616
executables: true,
1717
relocation_model: RelocModel::Static,
1818
disable_redzone: true,
19-
linker_is_gnu: true,
2019
max_atomic_width: Some(128),
2120
panic_strategy: PanicStrategy::Abort,
2221
unsupported_abis: super::arm_base::unsupported_abis(),

compiler/rustc_target/src/spec/avr_gnu_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub fn target(target_cpu: String) -> Target {
1616

1717
linker: Some("avr-gcc".to_owned()),
1818
executables: true,
19-
linker_is_gnu: true,
2019
eh_frame_header: false,
2120
pre_link_args: vec![(LinkerFlavor::Gcc, vec![format!("-mmcu={}", target_cpu)])]
2221
.into_iter()

compiler/rustc_target/src/spec/dragonfly_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub fn opts() -> TargetOptions {
66
dynamic_linking: true,
77
executables: true,
88
families: vec!["unix".to_string()],
9-
linker_is_gnu: true,
109
has_rpath: true,
1110
position_independent_executables: true,
1211
relro_level: RelroLevel::Full,

compiler/rustc_target/src/spec/freebsd_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub fn opts() -> TargetOptions {
66
dynamic_linking: true,
77
executables: true,
88
families: vec!["unix".to_string()],
9-
linker_is_gnu: true,
109
has_rpath: true,
1110
position_independent_executables: true,
1211
eliminate_frame_pointer: false, // FIXME 43575

compiler/rustc_target/src/spec/fuchsia_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pub fn opts() -> TargetOptions {
2727
executables: true,
2828
families: vec!["unix".to_string()],
2929
is_like_fuchsia: true,
30-
linker_is_gnu: true,
3130
pre_link_args,
3231
pre_link_objects: crt_objects::new(&[
3332
(LinkOutputKind::DynamicNoPicExe, &["Scrt1.o"]),

compiler/rustc_target/src/spec/haiku_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub fn opts() -> TargetOptions {
77
executables: true,
88
families: vec!["unix".to_string()],
99
relro_level: RelroLevel::Full,
10-
linker_is_gnu: true,
1110
..Default::default()
1211
}
1312
}

compiler/rustc_target/src/spec/hermit_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub fn opts() -> TargetOptions {
1313
linker: Some("rust-lld".to_owned()),
1414
executables: true,
1515
has_elf_tls: true,
16-
linker_is_gnu: true,
1716
pre_link_args,
1817
panic_strategy: PanicStrategy::Abort,
1918
position_independent_executables: true,

compiler/rustc_target/src/spec/hermit_kernel_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub fn opts() -> TargetOptions {
1414
linker: Some("rust-lld".to_owned()),
1515
executables: true,
1616
has_elf_tls: true,
17-
linker_is_gnu: true,
1817
pre_link_args,
1918
panic_strategy: PanicStrategy::Abort,
2019
position_independent_executables: true,

compiler/rustc_target/src/spec/linux_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub fn opts() -> TargetOptions {
66
dynamic_linking: true,
77
executables: true,
88
families: vec!["unix".to_string()],
9-
linker_is_gnu: true,
109
has_rpath: true,
1110
position_independent_executables: true,
1211
relro_level: RelroLevel::Full,

compiler/rustc_target/src/spec/linux_kernel_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pub fn opts() -> TargetOptions {
88
// don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
99
stack_probes: StackProbeType::Call,
1010
eliminate_frame_pointer: false,
11-
linker_is_gnu: true,
1211
position_independent_executables: true,
1312
needs_plt: true,
1413
relro_level: RelroLevel::Full,

compiler/rustc_target/src/spec/mipsel_sony_psp.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn target() -> Target {
2121
cpu: "mips2".to_string(),
2222
executables: true,
2323
linker: Some("rust-lld".to_owned()),
24-
linker_is_gnu: true,
2524
relocation_model: RelocModel::Static,
2625

2726
// PSP FPU only supports single precision floats.

compiler/rustc_target/src/spec/netbsd_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub fn opts() -> TargetOptions {
66
dynamic_linking: true,
77
executables: true,
88
families: vec!["unix".to_string()],
9-
linker_is_gnu: true,
109
no_default_libraries: false,
1110
has_rpath: true,
1211
position_independent_executables: true,

compiler/rustc_target/src/spec/openbsd_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub fn opts() -> TargetOptions {
66
dynamic_linking: true,
77
executables: true,
88
families: vec!["unix".to_string()],
9-
linker_is_gnu: true,
109
has_rpath: true,
1110
abi_return_struct_as_int: true,
1211
position_independent_executables: true,

compiler/rustc_target/src/spec/redox_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub fn opts() -> TargetOptions {
77
dynamic_linking: true,
88
executables: true,
99
families: vec!["unix".to_string()],
10-
linker_is_gnu: true,
1110
has_rpath: true,
1211
position_independent_executables: true,
1312
relro_level: RelroLevel::Full,

compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub fn target() -> Target {
2828
options: TargetOptions {
2929
linker_flavor: LinkerFlavor::Ld,
3030
linker: Some("arm-none-eabi-ld".to_string()),
31-
linker_is_gnu: true,
3231

3332
// extra args passed to the external assembler (assuming `arm-none-eabi-as`):
3433
// * activate t32/a32 interworking

compiler/rustc_target/src/spec/vxworks_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub fn opts() -> TargetOptions {
1010
dynamic_linking: true,
1111
executables: true,
1212
families: vec!["unix".to_string()],
13-
linker_is_gnu: true,
1413
has_rpath: true,
1514
has_elf_tls: true,
1615
crt_static_default: true,

compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub fn target() -> Target {
3434
// functionality, and a .wasm file.
3535
exe_suffix: ".js".to_string(),
3636
linker: None,
37-
linker_is_gnu: true,
3837
is_like_emscripten: true,
3938
panic_strategy: PanicStrategy::Unwind,
4039
post_link_args,

compiler/rustc_target/src/spec/windows_gnu_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub fn opts() -> TargetOptions {
6666
// FIXME(#13846) this should be enabled for windows
6767
function_sections: false,
6868
linker: Some("gcc".to_string()),
69-
linker_is_gnu: true,
7069
dynamic_linking: true,
7170
executables: true,
7271
dll_prefix: String::new(),

compiler/rustc_target/src/spec/x86_64_fortanix_unknown_sgx.rs

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ pub fn target() -> Target {
5757
vendor: "fortanix".into(),
5858
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
5959
executables: true,
60-
linker_is_gnu: true,
6160
linker: Some("rust-lld".to_owned()),
6261
max_atomic_width: Some(64),
6362
cpu: "x86-64".into(),

0 commit comments

Comments
 (0)