Skip to content

Commit d2a3784

Browse files
committed
Fix x86_64-apple-tvos target to use the correct target_abi
1 parent 79eedef commit d2a3784

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

compiler/rustc_target/src/spec/apple/tests.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
use crate::spec::{aarch64_apple_ios_sim, aarch64_apple_watchos_sim, x86_64_apple_ios};
1+
use crate::spec::{
2+
aarch64_apple_ios_sim, aarch64_apple_watchos_sim, x86_64_apple_ios, x86_64_apple_tvos,
3+
};
24

35
#[test]
46
fn simulator_targets_set_abi() {
57
let all_sim_targets = [
68
x86_64_apple_ios::target(),
9+
x86_64_apple_tvos::target(),
710
aarch64_apple_ios_sim::target(),
11+
// Note: There is currently no ARM64 tvOS simulator target
812
aarch64_apple_watchos_sim::target(),
9-
// TODO: x86_64-apple-tvos and x86_64-apple-watchos-sim
13+
// TODO: x86_64-apple-watchos-sim
1014
];
1115

1216
for target in all_sim_targets {

compiler/rustc_target/src/spec/x86_64_apple_tvos.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::apple_sdk_base::{opts, Arch};
22
use crate::spec::{StackProbeType, Target, TargetOptions};
33

44
pub fn target() -> Target {
5-
let base = opts("tvos", Arch::X86_64);
5+
let base = opts("tvos", Arch::X86_64_sim);
66
Target {
77
llvm_target: "x86_64-apple-tvos".into(),
88
pointer_width: 64,

0 commit comments

Comments
 (0)