Skip to content
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

Specify simulator in target triple #154

Conversation

kastiglione
Copy link
Contributor

@kastiglione kastiglione commented Mar 7, 2019

I notice that simulator builds don't have the -simulator environment in the target triple. With this change, -simulator is added for platforms where is_device is false. This matches Xcode.

allevato pushed a commit that referenced this pull request Mar 8, 2019
I notice that simulator builds don't have the `-simulator` [environment](http://llvm.org/doxygen/classllvm_1_1Triple.html#a1778f5c464f88710033f7e11e84a9324) in the target triple. With this change, `-simulator` is added for platforms where `is_device` is false. This matches Xcode.

Closes #154.

RELNOTES: `-simulator` is now added to the target triple passed to `swiftc` (e.g., "-target x86_64-apple-ios10.3-simulator") by the Xcode toolchain when targeting simulator platforms.
PiperOrigin-RevId: 237447785
@allevato allevato closed this in 3de5209 Mar 8, 2019
@kastiglione kastiglione deleted the dl/specify-simulator-in-target-triple branch March 8, 2019 18:15
@kastiglione
Copy link
Contributor Author

kastiglione commented Mar 11, 2019

I noticed that Bazel's osx crosstool also doesn't include -simulator in appropriate targets. I don't know if it matters for linking, so there's probably no rush, but maybe they should be updated for consistency.

tymurmustafaiev pushed a commit to tymurmustafaiev/rules_swift that referenced this pull request Jul 19, 2023
I notice that simulator builds don't have the `-simulator` [environment](http://llvm.org/doxygen/classllvm_1_1Triple.html#a1778f5c464f88710033f7e11e84a9324) in the target triple. With this change, `-simulator` is added for platforms where `is_device` is false. This matches Xcode.

Closes bazelbuild#154.

RELNOTES: `-simulator` is now added to the target triple passed to `swiftc` (e.g., "-target x86_64-apple-ios10.3-simulator") by the Xcode toolchain when targeting simulator platforms.
PiperOrigin-RevId: 237447785
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants