|
| 1 | +use crate::spec::{ |
| 2 | + Cc, FramePointer, LinkerFlavor, Lld, RelocModel, StackProbeType, TargetOptions, cvs, |
| 3 | +}; |
| 4 | + |
| 5 | +pub(crate) fn opts() -> TargetOptions { |
| 6 | + TargetOptions { |
| 7 | + os: "cosmo".into(), |
| 8 | + families: cvs!["unix"], |
| 9 | + plt_by_default: false, |
| 10 | + requires_uwtable: false, |
| 11 | + dynamic_linking: false, |
| 12 | + executables: true, |
| 13 | + exe_suffix: ".com.dbg".into(), |
| 14 | + emit_debug_gdb_scripts: false, |
| 15 | + crt_static_default: true, |
| 16 | + crt_static_respected: true, |
| 17 | + allows_weak_linkage: true, |
| 18 | + has_rpath: false, |
| 19 | + has_thread_local: false, |
| 20 | + trap_unreachable: true, |
| 21 | + position_independent_executables: false, |
| 22 | + static_position_independent_executables: false, |
| 23 | + relocation_model: RelocModel::Static, |
| 24 | + disable_redzone: true, |
| 25 | + frame_pointer: FramePointer::Always, |
| 26 | + requires_lto: false, |
| 27 | + eh_frame_header: false, |
| 28 | + no_default_libraries: true, |
| 29 | + max_atomic_width: Some(64), |
| 30 | + linker_flavor: LinkerFlavor::Gnu(Cc::Yes, Lld::No), |
| 31 | + stack_probes: StackProbeType::None, |
| 32 | + ..Default::default() |
| 33 | + } |
| 34 | +} |
0 commit comments