Skip to content

Commit

Permalink
Updated to use correct simulator setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEverson committed Feb 14, 2024
1 parent 0042c70 commit 0582155
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ impl Build {
.into(),
);
}
} else if target.contains("x86_64-apple-tvos") {
} else if target.contains("tvos-sim") {
if let Some(arch) =
map_darwin_target_from_rust_to_compiler_architecture(target)
{
Expand All @@ -1946,21 +1946,6 @@ impl Build {
.into(),
);
}
} else if target.contains("aarch64-apple-tvos") {
if let Some(arch) =
map_darwin_target_from_rust_to_compiler_architecture(target)
{
let sdk_details =
apple_os_sdk_parts(AppleOs::TvOs, &AppleArchSpec::Device(""));
let deployment_target = self.apple_deployment_version(
AppleOs::TvOs,
None,
&sdk_details.sdk,
);
cmd.args.push(
format!("--target={}-apple-tvos{}", arch, deployment_target).into(),
);
}
} else if target.starts_with("riscv64gc-") {
cmd.args.push(
format!("--target={}", target.replace("riscv64gc", "riscv64")).into(),
Expand Down

0 comments on commit 0582155

Please sign in to comment.