Fix x86_64-apple-tvos target to use the correct target_abi
This commit is contained in:
parent
79eedef984
commit
d2a3784780
@ -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]
|
#[test]
|
||||||
fn simulator_targets_set_abi() {
|
fn simulator_targets_set_abi() {
|
||||||
let all_sim_targets = [
|
let all_sim_targets = [
|
||||||
x86_64_apple_ios::target(),
|
x86_64_apple_ios::target(),
|
||||||
|
x86_64_apple_tvos::target(),
|
||||||
aarch64_apple_ios_sim::target(),
|
aarch64_apple_ios_sim::target(),
|
||||||
|
// Note: There is currently no ARM64 tvOS simulator target
|
||||||
aarch64_apple_watchos_sim::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 {
|
for target in all_sim_targets {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
use crate::spec::{StackProbeType, Target, TargetOptions};
|
use crate::spec::{StackProbeType, Target, TargetOptions};
|
||||||
|
|
||||||
pub fn target() -> Target {
|
pub fn target() -> Target {
|
||||||
let base = opts("tvos", Arch::X86_64);
|
let base = opts("tvos", Arch::X86_64_sim);
|
||||||
Target {
|
Target {
|
||||||
llvm_target: "x86_64-apple-tvos".into(),
|
llvm_target: "x86_64-apple-tvos".into(),
|
||||||
pointer_width: 64,
|
pointer_width: 64,
|
||||||
|
Loading…
Reference in New Issue
Block a user