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

Detect and use IPHONEOS_DEPLOYMENT_TARGET for the -mi*os-version-min flag #433

Merged
merged 1 commit into from Aug 12, 2019
Merged

Detect and use IPHONEOS_DEPLOYMENT_TARGET for the -mi*os-version-min flag #433

merged 1 commit into from Aug 12, 2019

Conversation

turboladen
Copy link
Contributor

...If it isn't set, fallback to the previous setting of -miphoneos-version-min=7.0 for real devices and mios-simulator-version-min=7.0 for simulators.


I realize this doesn't quite fulfill the request in #383 (defining a method on Tool), but it at least allows you to specify your targeted minimum version in what seems to be a conventional way (I'm not super familiar with building Xcode projects from the CLI). In my case, I'm using cmake-rs to build a C project, which uses cmake to build an iOS project, all for my Rust project, and this change allowed me to get that project building.

I'd really like to implement that method on Tool, but after a few days now I realize I won't have the time in the near future and don't want to let my changes go stale. I hope this is helpful...

…in` flag

If it isn't set, fallback to the previous setting of `-miphoneos-version-min=7.0` for real devices and `mios-simulator-version-min=7.0` for simulators.
@alexcrichton alexcrichton merged commit 5c0dc67 into rust-lang:master Aug 12, 2019
@alexcrichton
Copy link
Member

This is at least a good start, thanks @turboladen!

@turboladen
Copy link
Contributor Author

And thank you, @alexcrichton, for all the goodies you put out!

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.

None yet

2 participants