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

Fix default deployment target behavior for Apple targets #943

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

BlackHoleFox
Copy link
Contributor

In hindsight defaulting to rustc's default deployment targets when no explicit ones were provided wasn't a great call. Those versions are older then what most people target and interact badly with third-party C libraries and Apple's SDKs that expect usually higher versions instead. So this goes ahead and reverts to cc's older behavior of using the target's current platform SDK DefaultDeploymentTarget when no explicit version is given to cc.

This afaict is functionally identical to passing nothing and letting clang figure out the default except this keeps the code cleaner because optionals don't need handled everywhere :)

Fixes #902

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

Compilation in a macOS GitHub runner fails with cc v1.0.84
2 participants