Rollup merge of #144410 - Gelbpunkt:musl-tier3-dynamic, r=jieyouxu
Make tier 3 musl targets link dynamically by default Since we don't build std for these and don't provide any support for them, these can trivially be changed to link dynamically by default.
This commit is contained in:
@@ -7,7 +7,6 @@ pub(crate) fn target() -> Target {
|
||||
// FIXME: HVX length defaults are per-CPU
|
||||
base.features = "-small-data,+hvx-length128b".into();
|
||||
|
||||
base.crt_static_default = false;
|
||||
base.has_rpath = true;
|
||||
base.linker_flavor = LinkerFlavor::Unix(Cc::Yes);
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@ pub(crate) fn target() -> Target {
|
||||
abi: "abi64".into(),
|
||||
endian: Endian::Big,
|
||||
mcount: "_mcount".into(),
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
crt_static_default: true,
|
||||
llvm_abiname: "n64".into(),
|
||||
..base
|
||||
},
|
||||
|
||||
@@ -10,8 +10,6 @@ pub(crate) fn target() -> Target {
|
||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
||||
base.max_atomic_width = Some(64);
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
base.crt_static_default = true;
|
||||
base.abi = "elfv2".into();
|
||||
base.llvm_abiname = "elfv2".into();
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ pub(crate) fn target() -> Target {
|
||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m32"]);
|
||||
base.max_atomic_width = Some(32);
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
base.crt_static_default = true;
|
||||
|
||||
Target {
|
||||
llvm_target: "powerpc-unknown-linux-musl".into(),
|
||||
|
||||
@@ -9,8 +9,6 @@ pub(crate) fn target() -> Target {
|
||||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mspe"]);
|
||||
base.max_atomic_width = Some(32);
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
base.crt_static_default = true;
|
||||
|
||||
Target {
|
||||
llvm_target: "powerpc-unknown-linux-muslspe".into(),
|
||||
|
||||
@@ -23,8 +23,6 @@ pub(crate) fn target() -> Target {
|
||||
llvm_abiname: "ilp32d".into(),
|
||||
max_atomic_width: Some(32),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
crt_static_default: true,
|
||||
..base::linux_musl::opts()
|
||||
},
|
||||
}
|
||||
|
||||
@@ -13,8 +13,6 @@ pub(crate) fn target() -> Target {
|
||||
base.stack_probes = StackProbeType::Inline;
|
||||
base.supported_sanitizers =
|
||||
SanitizerSet::ADDRESS | SanitizerSet::LEAK | SanitizerSet::MEMORY | SanitizerSet::THREAD;
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
base.crt_static_default = true;
|
||||
|
||||
Target {
|
||||
llvm_target: "s390x-unknown-linux-musl".into(),
|
||||
|
||||
@@ -27,8 +27,6 @@ pub(crate) fn target() -> Target {
|
||||
features: "+v7,+thumb-mode,+thumb2,+vfp3,+neon".into(),
|
||||
max_atomic_width: Some(64),
|
||||
mcount: "\u{1}mcount".into(),
|
||||
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
|
||||
crt_static_default: true,
|
||||
..base::linux_musl::opts()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user