-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tvos-sim support #951
Changes from 5 commits
0582155
f3b1afd
9b86e3f
e4c1f51
32650dc
0c4695a
bb6a04e
294040a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1929,7 +1929,7 @@ impl Build { | |
.into(), | ||
); | ||
} | ||
} else if target.contains("x86_64-apple-tvos") { | ||
} else if target.contains("tvos-sim") || target.contains("x86_64-apple-tvos") { | ||
if let Some(arch) = | ||
map_darwin_target_from_rust_to_compiler_architecture(target) | ||
{ | ||
|
@@ -1948,21 +1948,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(), | ||
); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change seems to misalign with XCode at least. When building Objective-C with Did you try building any libs with this just to make sure? I didn't see a problem getting the deployment target into the final Mach-o executable at least. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a good point. I will add back this code as everything worked fine either way and that will align it with XCode's behavior. the produced binary Mach-O Platform type was verified with otool. |
||
} | ||
} else if target.starts_with("riscv64gc-") { | ||
cmd.args.push( | ||
format!("--target={}", target.replace("riscv64gc", "riscv64")).into(), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a new matrix to combine this with the aarch64-apple-tvos test above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Be-ing I updated to have a matrix for all -Z build-std targets. The only ones right now are tvOS targets but any tier 3 targets would fall in this same bucket as well.