Fix x86_64-apple-tvos target to use the correct target_abi

This commit is contained in:
BlackHoleFox 2022-10-23 15:33:01 -05:00
parent 79eedef984
commit d2a3784780
2 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,16 @@
use crate::spec::{aarch64_apple_ios_sim, aarch64_apple_watchos_sim, x86_64_apple_ios};
use crate::spec::{
aarch64_apple_ios_sim, aarch64_apple_watchos_sim, x86_64_apple_ios, x86_64_apple_tvos,
};
#[test]
fn simulator_targets_set_abi() {
let all_sim_targets = [
x86_64_apple_ios::target(),
x86_64_apple_tvos::target(),
aarch64_apple_ios_sim::target(),
// Note: There is currently no ARM64 tvOS simulator target
aarch64_apple_watchos_sim::target(),
// TODO: x86_64-apple-tvos and x86_64-apple-watchos-sim
// TODO: x86_64-apple-watchos-sim
];
for target in all_sim_targets {

View File

@ -2,7 +2,7 @@
use crate::spec::{StackProbeType, Target, TargetOptions};
pub fn target() -> Target {
let base = opts("tvos", Arch::X86_64);
let base = opts("tvos", Arch::X86_64_sim);
Target {
llvm_target: "x86_64-apple-tvos".into(),
pointer_width: 64,