1 use crate::spec::{cvs, LinkerFlavor, RelocModel, Target, TargetOptions};
3 /// A base target for Nintendo 3DS devices using the devkitARM toolchain.
5 /// Requires the devkitARM toolchain for 3DS targets on the host system.
7 pub fn target() -> Target {
8 let pre_link_args = TargetOptions::link_args(
10 &["-specs=3dsx.specs", "-mtune=mpcore", "-mfloat-abi=hard", "-mtp=soft"],
14 llvm_target: "armv6k-none-eabihf".into(),
16 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
19 options: TargetOptions {
22 vendor: "nintendo".into(),
24 linker_flavor: LinkerFlavor::Gcc,
26 families: cvs!["unix"],
27 linker: Some("arm-none-eabi-gcc".into()),
28 relocation_model: RelocModel::Static,
29 features: "+vfp2".into(),
31 exe_suffix: ".elf".into(),
32 no_default_libraries: false,
33 // There are some issues in debug builds with this enabled in certain programs.
34 has_thread_local: false,