Add target thumbv7a-uwp-windows-msvc
This commit is contained in:
parent
09c817eeb2
commit
5bfb7e7437
3 changed files with 32 additions and 0 deletions
|
|
@ -181,6 +181,7 @@ fn get_linker(sess: &Session, linker: &Path, flavor: LinkerFlavor) -> Command {
|
|||
"x86_64" => Some("x64".to_string()),
|
||||
"x86" => Some("x86".to_string()),
|
||||
"aarch64" => Some("arm64".to_string()),
|
||||
"arm" => Some("arm".to_string()),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(ref a) = arch {
|
||||
|
|
|
|||
|
|
@ -530,6 +530,7 @@ supported_targets! {
|
|||
("i686-uwp-windows-msvc", i686_uwp_windows_msvc),
|
||||
("i586-pc-windows-msvc", i586_pc_windows_msvc),
|
||||
("thumbv7a-pc-windows-msvc", thumbv7a_pc_windows_msvc),
|
||||
("thumbv7a-uwp-windows-msvc", thumbv7a_uwp_windows_msvc),
|
||||
|
||||
("asmjs-unknown-emscripten", asmjs_unknown_emscripten),
|
||||
("wasm32-unknown-emscripten", wasm32_unknown_emscripten),
|
||||
|
|
|
|||
30
src/librustc_target/spec/thumbv7a_uwp_windows_msvc.rs
Normal file
30
src/librustc_target/spec/thumbv7a_uwp_windows_msvc.rs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
use crate::spec::{LinkerFlavor, PanicStrategy, Target, TargetOptions, TargetResult};
|
||||
|
||||
pub fn target() -> TargetResult {
|
||||
let mut base = super::windows_uwp_msvc_base::opts();
|
||||
base.max_atomic_width = Some(64);
|
||||
base.has_elf_tls = true;
|
||||
|
||||
// FIXME(jordanrh): use PanicStrategy::Unwind when SEH is
|
||||
// implemented for windows/arm in LLVM
|
||||
base.panic_strategy = PanicStrategy::Abort;
|
||||
|
||||
Ok(Target {
|
||||
llvm_target: "thumbv7a-pc-windows-msvc".to_string(),
|
||||
target_endian: "little".to_string(),
|
||||
target_pointer_width: "32".to_string(),
|
||||
target_c_int_width: "32".to_string(),
|
||||
data_layout: "e-m:w-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
|
||||
arch: "arm".to_string(),
|
||||
target_os: "windows".to_string(),
|
||||
target_env: "msvc".to_string(),
|
||||
target_vendor: "uwp".to_string(),
|
||||
linker_flavor: LinkerFlavor::Msvc,
|
||||
options: TargetOptions {
|
||||
features: "+vfp3,+neon".to_string(),
|
||||
cpu: "generic".to_string(),
|
||||
abi_blacklist: super::arm_base::abi_blacklist(),
|
||||
..base
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue