Skip to content

Commit dcdb229

Browse files
authored
Rollup merge of rust-lang#98622 - petrochenkov:executables, r=oli-obk
rustc_target: Flip the default for `TargetOptions::executables` to true This flag is true for most targets and the remaining targets may be mistakes.
2 parents b3f4c31 + 8d9fdb7 commit dcdb229

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4
-53
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_none.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub fn target() -> Target {
1313
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1414
linker: Some("rust-lld".into()),
1515
features: "+strict-align,+neon,+fp-armv8".into(),
16-
executables: true,
1716
relocation_model: RelocModel::Static,
1817
disable_redzone: true,
1918
max_atomic_width: Some(128),

compiler/rustc_target/src/spec/aarch64_unknown_none_softfloat.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub fn target() -> Target {
1414
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1515
linker: Some("rust-lld".into()),
1616
features: "+strict-align,-neon,-fp-armv8".into(),
17-
executables: true,
1817
relocation_model: RelocModel::Static,
1918
disable_redzone: true,
2019
max_atomic_width: Some(128),

compiler/rustc_target/src/spec/apple_base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub fn opts(os: &'static str) -> TargetOptions {
2525
function_sections: false,
2626
dynamic_linking: true,
2727
linker_is_gnu: false,
28-
executables: true,
2928
families: cvs!["unix"],
3029
is_like_osx: true,
3130
default_dwarf_version: 2,

compiler/rustc_target/src/spec/apple_sdk_base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ pub fn opts(os: &'static str, arch: Arch) -> TargetOptions {
5454
abi: target_abi(arch).into(),
5555
cpu: target_cpu(arch).into(),
5656
dynamic_linking: false,
57-
executables: true,
5857
link_env_remove: link_env_remove(arch),
5958
has_thread_local: false,
6059
..super::apple_base::opts(os)

compiler/rustc_target/src/spec/armebv7r_none_eabi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub fn target() -> Target {
1414
abi: "eabi".into(),
1515
endian: Endian::Big,
1616
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
17-
executables: true,
1817
linker: Some("rust-lld".into()),
1918
relocation_model: RelocModel::Static,
2019
panic_strategy: PanicStrategy::Abort,

compiler/rustc_target/src/spec/armebv7r_none_eabihf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub fn target() -> Target {
1414
abi: "eabihf".into(),
1515
endian: Endian::Big,
1616
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
17-
executables: true,
1817
linker: Some("rust-lld".into()),
1918
relocation_model: RelocModel::Static,
2019
panic_strategy: PanicStrategy::Abort,

compiler/rustc_target/src/spec/armv6k_nintendo_3ds.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pub fn target() -> Target {
2323
abi: "eabihf".into(),
2424
linker_flavor: LinkerFlavor::Gcc,
2525
cpu: "mpcore".into(),
26-
executables: true,
2726
families: cvs!["unix"],
2827
linker: Some("arm-none-eabi-gcc".into()),
2928
relocation_model: RelocModel::Static,

compiler/rustc_target/src/spec/armv7a_none_eabi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub fn target() -> Target {
2222
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
2323
linker: Some("rust-lld".into()),
2424
features: "+v7,+thumb2,+soft-float,-neon,+strict-align".into(),
25-
executables: true,
2625
relocation_model: RelocModel::Static,
2726
disable_redzone: true,
2827
max_atomic_width: Some(64),

compiler/rustc_target/src/spec/armv7a_none_eabihf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub fn target() -> Target {
1313
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1414
linker: Some("rust-lld".into()),
1515
features: "+v7,+vfp3,-d32,+thumb2,-neon,+strict-align".into(),
16-
executables: true,
1716
relocation_model: RelocModel::Static,
1817
disable_redzone: true,
1918
max_atomic_width: Some(64),

compiler/rustc_target/src/spec/armv7r_none_eabi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub fn target() -> Target {
1313
options: TargetOptions {
1414
abi: "eabi".into(),
1515
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
16-
executables: true,
1716
linker: Some("rust-lld".into()),
1817
relocation_model: RelocModel::Static,
1918
panic_strategy: PanicStrategy::Abort,

0 commit comments

Comments
 (0)