rustc_target: Flip the default for TargetOptions::executables
to true
Also change `executables` to true for linux-kernel and windows-uwp-gnu targets
This commit is contained in:
parent
9fb32dc924
commit
8d9fdb778e
50 changed files with 4 additions and 53 deletions
|
@ -13,7 +13,6 @@ pub fn target() -> Target {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
features: "+strict-align,+neon,+fp-armv8".into(),
|
features: "+strict-align,+neon,+fp-armv8".into(),
|
||||||
executables: true,
|
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
disable_redzone: true,
|
disable_redzone: true,
|
||||||
max_atomic_width: Some(128),
|
max_atomic_width: Some(128),
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
features: "+strict-align,-neon,-fp-armv8".into(),
|
features: "+strict-align,-neon,-fp-armv8".into(),
|
||||||
executables: true,
|
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
disable_redzone: true,
|
disable_redzone: true,
|
||||||
max_atomic_width: Some(128),
|
max_atomic_width: Some(128),
|
||||||
|
|
|
@ -25,7 +25,6 @@ pub fn opts(os: &'static str) -> TargetOptions {
|
||||||
function_sections: false,
|
function_sections: false,
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
linker_is_gnu: false,
|
linker_is_gnu: false,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
is_like_osx: true,
|
is_like_osx: true,
|
||||||
default_dwarf_version: 2,
|
default_dwarf_version: 2,
|
||||||
|
|
|
@ -54,7 +54,6 @@ pub fn opts(os: &'static str, arch: Arch) -> TargetOptions {
|
||||||
abi: target_abi(arch).into(),
|
abi: target_abi(arch).into(),
|
||||||
cpu: target_cpu(arch).into(),
|
cpu: target_cpu(arch).into(),
|
||||||
dynamic_linking: false,
|
dynamic_linking: false,
|
||||||
executables: true,
|
|
||||||
link_env_remove: link_env_remove(arch),
|
link_env_remove: link_env_remove(arch),
|
||||||
has_thread_local: false,
|
has_thread_local: false,
|
||||||
..super::apple_base::opts(os)
|
..super::apple_base::opts(os)
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
abi: "eabi".into(),
|
abi: "eabi".into(),
|
||||||
endian: Endian::Big,
|
endian: Endian::Big,
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
abi: "eabihf".into(),
|
abi: "eabihf".into(),
|
||||||
endian: Endian::Big,
|
endian: Endian::Big,
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -23,7 +23,6 @@ pub fn target() -> Target {
|
||||||
abi: "eabihf".into(),
|
abi: "eabihf".into(),
|
||||||
linker_flavor: LinkerFlavor::Gcc,
|
linker_flavor: LinkerFlavor::Gcc,
|
||||||
cpu: "mpcore".into(),
|
cpu: "mpcore".into(),
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
linker: Some("arm-none-eabi-gcc".into()),
|
linker: Some("arm-none-eabi-gcc".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
|
|
|
@ -22,7 +22,6 @@ pub fn target() -> Target {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
features: "+v7,+thumb2,+soft-float,-neon,+strict-align".into(),
|
features: "+v7,+thumb2,+soft-float,-neon,+strict-align".into(),
|
||||||
executables: true,
|
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
disable_redzone: true,
|
disable_redzone: true,
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
|
|
|
@ -13,7 +13,6 @@ pub fn target() -> Target {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
features: "+v7,+vfp3,-d32,+thumb2,-neon,+strict-align".into(),
|
features: "+v7,+vfp3,-d32,+thumb2,-neon,+strict-align".into(),
|
||||||
executables: true,
|
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
disable_redzone: true,
|
disable_redzone: true,
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
|
|
|
@ -13,7 +13,6 @@ pub fn target() -> Target {
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
abi: "eabi".into(),
|
abi: "eabi".into(),
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -13,7 +13,6 @@ pub fn target() -> Target {
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
abi: "eabihf".into(),
|
abi: "eabihf".into(),
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -16,7 +16,6 @@ pub fn target(target_cpu: &'static str, mmcu: &'static str) -> Target {
|
||||||
exe_suffix: ".elf".into(),
|
exe_suffix: ".elf".into(),
|
||||||
|
|
||||||
linker: Some("avr-gcc".into()),
|
linker: Some("avr-gcc".into()),
|
||||||
executables: true,
|
|
||||||
eh_frame_header: false,
|
eh_frame_header: false,
|
||||||
pre_link_args: TargetOptions::link_args(LinkerFlavor::Gcc, &[mmcu]),
|
pre_link_args: TargetOptions::link_args(LinkerFlavor::Gcc, &[mmcu]),
|
||||||
late_link_args: TargetOptions::link_args(LinkerFlavor::Gcc, &["-lgcc"]),
|
late_link_args: TargetOptions::link_args(LinkerFlavor::Gcc, &["-lgcc"]),
|
||||||
|
|
|
@ -7,7 +7,6 @@ pub fn opts(endian: Endian) -> TargetOptions {
|
||||||
endian,
|
endian,
|
||||||
linker_flavor: LinkerFlavor::BpfLinker,
|
linker_flavor: LinkerFlavor::BpfLinker,
|
||||||
atomic_cas: false,
|
atomic_cas: false,
|
||||||
executables: true,
|
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
no_builtins: true,
|
no_builtins: true,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "dragonfly".into(),
|
os: "dragonfly".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
position_independent_executables: true,
|
position_independent_executables: true,
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "freebsd".into(),
|
os: "freebsd".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
position_independent_executables: true,
|
position_independent_executables: true,
|
||||||
|
|
|
@ -23,7 +23,6 @@ pub fn opts() -> TargetOptions {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
pre_link_args,
|
pre_link_args,
|
||||||
pre_link_objects: crt_objects::new(&[
|
pre_link_objects: crt_objects::new(&[
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "haiku".into(),
|
os: "haiku".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
relro_level: RelroLevel::Full,
|
relro_level: RelroLevel::Full,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
@ -10,7 +10,6 @@ pub fn opts() -> TargetOptions {
|
||||||
os: "hermit".into(),
|
os: "hermit".into(),
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
executables: true,
|
|
||||||
has_thread_local: true,
|
has_thread_local: true,
|
||||||
pre_link_args,
|
pre_link_args,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
|
|
@ -11,7 +11,6 @@ pub fn target() -> Target {
|
||||||
base.has_rpath = true;
|
base.has_rpath = true;
|
||||||
base.linker_is_gnu = false;
|
base.linker_is_gnu = false;
|
||||||
base.dynamic_linking = true;
|
base.dynamic_linking = true;
|
||||||
base.executables = true;
|
|
||||||
|
|
||||||
base.c_enum_min_bits = 8;
|
base.c_enum_min_bits = 8;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "illumos".into(),
|
os: "illumos".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
is_like_solaris: true,
|
is_like_solaris: true,
|
||||||
|
|
|
@ -5,7 +5,6 @@ pub fn opts() -> TargetOptions {
|
||||||
os: "l4re".into(),
|
os: "l4re".into(),
|
||||||
env: "uclibc".into(),
|
env: "uclibc".into(),
|
||||||
linker_flavor: LinkerFlavor::L4Bender,
|
linker_flavor: LinkerFlavor::L4Bender,
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
linker: Some("l4-bender".into()),
|
linker: Some("l4-bender".into()),
|
||||||
linker_is_gnu: false,
|
linker_is_gnu: false,
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "linux".into(),
|
os: "linux".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
position_independent_executables: true,
|
position_independent_executables: true,
|
||||||
|
|
|
@ -18,7 +18,6 @@ pub fn target() -> Target {
|
||||||
vendor: "sony".into(),
|
vendor: "sony".into(),
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
cpu: "mips2".into(),
|
cpu: "mips2".into(),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ pub fn target() -> Target {
|
||||||
cpu: "mips32r2".into(),
|
cpu: "mips32r2".into(),
|
||||||
features: "+mips32r2,+soft-float,+noabicalls".into(),
|
features: "+mips32r2,+soft-float,+noabicalls".into(),
|
||||||
max_atomic_width: Some(32),
|
max_atomic_width: Some(32),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
|
|
|
@ -1212,8 +1212,7 @@ pub struct TargetOptions {
|
||||||
pub dynamic_linking: bool,
|
pub dynamic_linking: bool,
|
||||||
/// If dynamic linking is available, whether only cdylibs are supported.
|
/// If dynamic linking is available, whether only cdylibs are supported.
|
||||||
pub only_cdylib: bool,
|
pub only_cdylib: bool,
|
||||||
/// Whether executables are available on this target. iOS, for example, only allows static
|
/// Whether executables are available on this target. Defaults to true.
|
||||||
/// libraries. Defaults to false.
|
|
||||||
pub executables: bool,
|
pub executables: bool,
|
||||||
/// Relocation model to use in object file. Corresponds to `llc
|
/// Relocation model to use in object file. Corresponds to `llc
|
||||||
/// -relocation-model=$relocation_model`. Defaults to `Pic`.
|
/// -relocation-model=$relocation_model`. Defaults to `Pic`.
|
||||||
|
@ -1520,7 +1519,7 @@ impl Default for TargetOptions {
|
||||||
features: "".into(),
|
features: "".into(),
|
||||||
dynamic_linking: false,
|
dynamic_linking: false,
|
||||||
only_cdylib: false,
|
only_cdylib: false,
|
||||||
executables: false,
|
executables: true,
|
||||||
relocation_model: RelocModel::Pic,
|
relocation_model: RelocModel::Pic,
|
||||||
code_model: None,
|
code_model: None,
|
||||||
tls_model: TlsModel::GeneralDynamic,
|
tls_model: TlsModel::GeneralDynamic,
|
||||||
|
|
|
@ -9,7 +9,6 @@ pub fn target() -> Target {
|
||||||
|
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
c_int_width: "16".into(),
|
c_int_width: "16".into(),
|
||||||
executables: true,
|
|
||||||
|
|
||||||
// The LLVM backend currently can't generate object files. To
|
// The LLVM backend currently can't generate object files. To
|
||||||
// workaround this LLVM generates assembly files which then we feed
|
// workaround this LLVM generates assembly files which then we feed
|
||||||
|
|
|
@ -7,7 +7,6 @@ pub fn opts() -> TargetOptions {
|
||||||
|
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
linker_flavor: LinkerFlavor::Msvc,
|
linker_flavor: LinkerFlavor::Msvc,
|
||||||
executables: true,
|
|
||||||
is_like_windows: true,
|
is_like_windows: true,
|
||||||
is_like_msvc: true,
|
is_like_msvc: true,
|
||||||
lld_flavor: LldFlavor::Link,
|
lld_flavor: LldFlavor::Link,
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "netbsd".into(),
|
os: "netbsd".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
no_default_libraries: false,
|
no_default_libraries: false,
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
|
|
|
@ -26,7 +26,6 @@ pub fn target() -> Target {
|
||||||
|
|
||||||
// Needed to use `dylib` and `bin` crate types and the linker.
|
// Needed to use `dylib` and `bin` crate types and the linker.
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
|
|
||||||
// Avoid using dylib because it contain metadata not supported
|
// Avoid using dylib because it contain metadata not supported
|
||||||
// by LLVM NVPTX backend.
|
// by LLVM NVPTX backend.
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "openbsd".into(),
|
os: "openbsd".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
abi_return_struct_as_int: true,
|
abi_return_struct_as_int: true,
|
||||||
|
|
|
@ -5,7 +5,6 @@ pub fn opts() -> TargetOptions {
|
||||||
os: "redox".into(),
|
os: "redox".into(),
|
||||||
env: "relibc".into(),
|
env: "relibc".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
position_independent_executables: true,
|
position_independent_executables: true,
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
cpu: "generic-rv32".into(),
|
cpu: "generic-rv32".into(),
|
||||||
max_atomic_width: Some(0),
|
max_atomic_width: Some(0),
|
||||||
atomic_cas: false,
|
atomic_cas: false,
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
|
@ -15,7 +15,6 @@ pub fn target() -> Target {
|
||||||
max_atomic_width: Some(0),
|
max_atomic_width: Some(0),
|
||||||
atomic_cas: false,
|
atomic_cas: false,
|
||||||
features: "+m".into(),
|
features: "+m".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
cpu: "generic-rv32".into(),
|
cpu: "generic-rv32".into(),
|
||||||
max_atomic_width: Some(32),
|
max_atomic_width: Some(32),
|
||||||
features: "+m,+a,+c".into(),
|
features: "+m,+a,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
|
@ -15,7 +15,6 @@ pub fn target() -> Target {
|
||||||
cpu: "generic-rv32".into(),
|
cpu: "generic-rv32".into(),
|
||||||
max_atomic_width: Some(32),
|
max_atomic_width: Some(32),
|
||||||
features: "+m,+a,+c".into(),
|
features: "+m,+a,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
@ -26,7 +26,6 @@ pub fn target() -> Target {
|
||||||
atomic_cas: true,
|
atomic_cas: true,
|
||||||
|
|
||||||
features: "+m,+c".into(),
|
features: "+m,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
|
@ -15,7 +15,6 @@ pub fn target() -> Target {
|
||||||
max_atomic_width: Some(0),
|
max_atomic_width: Some(0),
|
||||||
atomic_cas: false,
|
atomic_cas: false,
|
||||||
features: "+m,+c".into(),
|
features: "+m,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
|
@ -15,7 +15,6 @@ pub fn target() -> Target {
|
||||||
cpu: "generic-rv64".into(),
|
cpu: "generic-rv64".into(),
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
features: "+m,+a,+f,+d,+c".into(),
|
features: "+m,+a,+f,+d,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
code_model: Some(CodeModel::Medium),
|
code_model: Some(CodeModel::Medium),
|
||||||
|
|
|
@ -14,7 +14,6 @@ pub fn target() -> Target {
|
||||||
cpu: "generic-rv64".into(),
|
cpu: "generic-rv64".into(),
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
features: "+m,+a,+c".into(),
|
features: "+m,+a,+c".into(),
|
||||||
executables: true,
|
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
relocation_model: RelocModel::Static,
|
relocation_model: RelocModel::Static,
|
||||||
code_model: Some(CodeModel::Medium),
|
code_model: Some(CodeModel::Medium),
|
||||||
|
|
|
@ -4,7 +4,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: "solaris".into(),
|
os: "solaris".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
is_like_solaris: true,
|
is_like_solaris: true,
|
||||||
|
|
|
@ -5,6 +5,7 @@ pub fn opts(kernel: &str) -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
os: format!("solid_{}", kernel).into(),
|
os: format!("solid_{}", kernel).into(),
|
||||||
vendor: "kmc".into(),
|
vendor: "kmc".into(),
|
||||||
|
executables: false,
|
||||||
frame_pointer: FramePointer::NonLeaf,
|
frame_pointer: FramePointer::NonLeaf,
|
||||||
has_thread_local: true,
|
has_thread_local: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
@ -34,7 +34,6 @@ pub fn opts() -> TargetOptions {
|
||||||
// See rust-lang/rfcs#1645 for a discussion about these defaults
|
// See rust-lang/rfcs#1645 for a discussion about these defaults
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
// In most cases, LLD is good enough
|
// In most cases, LLD is good enough
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
// Because these devices have very little resources having an unwinder is too onerous so we
|
// Because these devices have very little resources having an unwinder is too onerous so we
|
||||||
|
|
|
@ -8,7 +8,6 @@ pub fn opts() -> TargetOptions {
|
||||||
linker: Some("wr-c++".into()),
|
linker: Some("wr-c++".into()),
|
||||||
exe_suffix: ".vxe".into(),
|
exe_suffix: ".vxe".into(),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
families: cvs!["unix"],
|
families: cvs!["unix"],
|
||||||
has_rpath: true,
|
has_rpath: true,
|
||||||
has_thread_local: true,
|
has_thread_local: true,
|
||||||
|
|
|
@ -62,9 +62,6 @@ pub fn options() -> TargetOptions {
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
only_cdylib: true,
|
only_cdylib: true,
|
||||||
|
|
||||||
// This means we'll just embed a `#[start]` function in the wasm module
|
|
||||||
executables: true,
|
|
||||||
|
|
||||||
// relatively self-explanatory!
|
// relatively self-explanatory!
|
||||||
exe_suffix: ".wasm".into(),
|
exe_suffix: ".wasm".into(),
|
||||||
dll_prefix: "".into(),
|
dll_prefix: "".into(),
|
||||||
|
|
|
@ -67,7 +67,6 @@ pub fn opts() -> TargetOptions {
|
||||||
function_sections: false,
|
function_sections: false,
|
||||||
linker: Some("gcc".into()),
|
linker: Some("gcc".into()),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
dll_prefix: "".into(),
|
dll_prefix: "".into(),
|
||||||
dll_suffix: ".dll".into(),
|
dll_suffix: ".dll".into(),
|
||||||
exe_suffix: ".exe".into(),
|
exe_suffix: ".exe".into(),
|
||||||
|
|
|
@ -20,7 +20,6 @@ pub fn opts() -> TargetOptions {
|
||||||
abi: "llvm".into(),
|
abi: "llvm".into(),
|
||||||
linker: Some("clang".into()),
|
linker: Some("clang".into()),
|
||||||
dynamic_linking: true,
|
dynamic_linking: true,
|
||||||
executables: true,
|
|
||||||
dll_prefix: "".into(),
|
dll_prefix: "".into(),
|
||||||
dll_suffix: ".dll".into(),
|
dll_suffix: ".dll".into(),
|
||||||
exe_suffix: ".exe".into(),
|
exe_suffix: ".exe".into(),
|
||||||
|
|
|
@ -24,7 +24,6 @@ pub fn opts() -> TargetOptions {
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
abi: "uwp".into(),
|
abi: "uwp".into(),
|
||||||
vendor: "uwp".into(),
|
vendor: "uwp".into(),
|
||||||
executables: false,
|
|
||||||
limit_rdylib_exports: false,
|
limit_rdylib_exports: false,
|
||||||
late_link_args,
|
late_link_args,
|
||||||
late_link_args_dynamic,
|
late_link_args_dynamic,
|
||||||
|
|
|
@ -62,7 +62,6 @@ pub fn target() -> Target {
|
||||||
vendor: "fortanix".into(),
|
vendor: "fortanix".into(),
|
||||||
abi: "fortanix".into(),
|
abi: "fortanix".into(),
|
||||||
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
|
||||||
executables: true,
|
|
||||||
linker: Some("rust-lld".into()),
|
linker: Some("rust-lld".into()),
|
||||||
max_atomic_width: Some(64),
|
max_atomic_width: Some(64),
|
||||||
cpu: "x86-64".into(),
|
cpu: "x86-64".into(),
|
||||||
|
|
|
@ -24,7 +24,6 @@ pub fn target() -> Target {
|
||||||
features:
|
features:
|
||||||
"-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
|
"-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
|
||||||
.into(),
|
.into(),
|
||||||
executables: true,
|
|
||||||
disable_redzone: true,
|
disable_redzone: true,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
code_model: Some(CodeModel::Kernel),
|
code_model: Some(CodeModel::Kernel),
|
||||||
|
|
|
@ -8,4 +8,4 @@ all:
|
||||||
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-x86_64-unknown-linux-gnu-platform --crate-type=lib --emit=asm
|
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-x86_64-unknown-linux-gnu-platform --crate-type=lib --emit=asm
|
||||||
$(RUSTC) -Z unstable-options --target=my-awesome-platform.json --print target-spec-json > $(TMPDIR)/test-platform.json && $(RUSTC) -Z unstable-options --target=$(TMPDIR)/test-platform.json --print target-spec-json | diff -q $(TMPDIR)/test-platform.json -
|
$(RUSTC) -Z unstable-options --target=my-awesome-platform.json --print target-spec-json > $(TMPDIR)/test-platform.json && $(RUSTC) -Z unstable-options --target=$(TMPDIR)/test-platform.json --print target-spec-json | diff -q $(TMPDIR)/test-platform.json -
|
||||||
$(RUSTC) foo.rs --target=definitely-not-builtin-target 2>&1 | $(CGREP) 'may not set is_builtin'
|
$(RUSTC) foo.rs --target=definitely-not-builtin-target 2>&1 | $(CGREP) 'may not set is_builtin'
|
||||||
$(RUSTC) foo.rs --target=mismatching-data-layout
|
$(RUSTC) foo.rs --target=mismatching-data-layout --crate-type=lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue