Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion compiler/rustc_target/src/spec/base/cygwin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub(crate) fn opts() -> TargetOptions {
families: cvs!["unix"],
is_like_windows: true,
binary_format: BinaryFormat::Coff,
allows_weak_linkage: false,
pre_link_args,
late_link_args,
abi_return_struct_as_int: true,
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_target/src/spec/base/uefi_msvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pub(crate) fn opts() -> TargetOptions {
linker_flavor: LinkerFlavor::Msvc(Lld::Yes),
disable_redzone: true,
exe_suffix: ".efi".into(),
allows_weak_linkage: false,
panic_strategy: PanicStrategy::Abort,
// LLVM does not emit inline assembly because the LLVM target does not get considered as…
// "Windows".
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_target/src/spec/base/windows_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ pub(crate) fn opts() -> TargetOptions {
families: cvs!["windows"],
is_like_windows: true,
binary_format: BinaryFormat::Coff,
allows_weak_linkage: false,
pre_link_args,
pre_link_objects_self_contained: crt_objects::pre_mingw_self_contained(),
link_self_contained: LinkSelfContainedDefault::InferredForMingw,
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_target/src/spec/base/windows_gnullvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub(crate) fn opts() -> TargetOptions {
families: cvs!["windows"],
is_like_windows: true,
binary_format: BinaryFormat::Coff,
allows_weak_linkage: false,
pre_link_args,
pre_link_objects_self_contained: pre_mingw_self_contained(),
link_self_contained: LinkSelfContainedDefault::InferredForMingw,
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_target/src/spec/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ impl Target {
forward!(is_like_vexos);
forward!(binary_format);
forward!(default_dwarf_version);
forward!(allows_weak_linkage);
forward!(has_rpath);
forward!(no_default_libraries);
forward!(position_independent_executables);
Expand Down Expand Up @@ -352,7 +351,6 @@ impl ToJson for Target {
target_option_val!(is_like_vexos);
target_option_val!(binary_format);
target_option_val!(default_dwarf_version);
target_option_val!(allows_weak_linkage);
target_option_val!(has_rpath);
target_option_val!(no_default_libraries);
target_option_val!(position_independent_executables);
Expand Down Expand Up @@ -575,7 +573,6 @@ struct TargetSpecJson {
is_like_vexos: Option<bool>,
binary_format: Option<BinaryFormat>,
default_dwarf_version: Option<u32>,
allows_weak_linkage: Option<bool>,
has_rpath: Option<bool>,
no_default_libraries: Option<bool>,
position_independent_executables: Option<bool>,
Expand Down
8 changes: 0 additions & 8 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,13 +2485,6 @@ pub struct TargetOptions {
/// Default supported version of DWARF on this platform.
/// Useful because some platforms (osx, bsd) only want up to DWARF2.
pub default_dwarf_version: u32,
/// The MinGW toolchain has a known issue that prevents it from correctly
/// handling COFF object files with more than 2<sup>15</sup> sections. Since each weak
/// symbol needs its own COMDAT section, weak linkage implies a large
/// number sections that easily exceeds the given limit for larger
/// codebases. Consequently we want a way to disallow weak linkage on some
/// platforms.
pub allows_weak_linkage: bool,
/// Whether the linker support rpaths or not. Defaults to false.
pub has_rpath: bool,
/// Whether to disable linking to the default libraries, typically corresponds
Expand Down Expand Up @@ -2878,7 +2871,6 @@ impl Default for TargetOptions {
is_like_vexos: false,
binary_format: BinaryFormat::Elf,
default_dwarf_version: 4,
allows_weak_linkage: true,
has_rpath: false,
no_default_libraries: true,
position_independent_executables: false,
Expand Down
Loading