]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | use crate::spec::{PanicStrategy, Target, TargetOptions}; |
f9f354fc | 2 | |
29967ef6 | 3 | pub fn target() -> Target { |
f9f354fc XL |
4 | let mut base = super::windows_uwp_msvc_base::opts(); |
5 | base.max_atomic_width = Some(64); | |
6 | base.has_elf_tls = true; | |
7 | ||
8 | // FIXME(jordanrh): use PanicStrategy::Unwind when SEH is | |
9 | // implemented for windows/arm in LLVM | |
10 | base.panic_strategy = PanicStrategy::Abort; | |
11 | ||
29967ef6 | 12 | Target { |
f9f354fc | 13 | llvm_target: "thumbv7a-pc-windows-msvc".to_string(), |
29967ef6 | 14 | pointer_width: 32, |
f9f354fc XL |
15 | data_layout: "e-m:w-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), |
16 | arch: "arm".to_string(), | |
f9f354fc XL |
17 | options: TargetOptions { |
18 | features: "+vfp3,+neon".to_string(), | |
f035d41b | 19 | unsupported_abis: super::arm_base::unsupported_abis(), |
f9f354fc XL |
20 | ..base |
21 | }, | |
29967ef6 | 22 | } |
f9f354fc | 23 | } |