Skip to content

Attempt to use SDKSettings.json on Darwin platforms to set -target-sdk-version #209

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

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Aug 16, 2020

This fixes the Driver/sdk-version.swift integration test, and it's also a prerequisite to begin modernizing linker deployment targets to use -platform_version instead of the old flags.

Unfortunately, SDKSettings.json doesn't work very well with Codable synthesis and the implementation of Codable for Version in TSC, so there's a lot of manual decoding. Also, this implementation sometimes includes a minor version of 0 where the integrated driver would not (for example -target-sdk-version 13.4.0 instead of 13.4); as far as I know this won't break anything, and it makes the version remapping much simpler.

@owenv
Copy link
Contributor Author

owenv commented Aug 16, 2020

@swift-ci test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This is great, thank you for working on it!

@owenv owenv merged commit cc597d0 into swiftlang:master Aug 18, 2020
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.

2 participants