Skip to content

[PackageModel] Associated swift version build setting with `SWIFT_VER… #7550

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
May 11, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 10, 2024

…SION` declaration

Instead of putting it into OTHER_SWIFT_FLAGS, let's introduce a dedicated declaration scope - SWIFT_VERSION to ease handling and discovery.

Resolves: rdar://127883018

@xedin
Copy link
Contributor Author

xedin commented May 10, 2024

@swift-ci please test

…SION` declaration

Instead of putting it into `OTHER_SWIFT_FLAGS`, let's introduce
a dedicated declaration scope - `SWIFT_VERSION` to ease handling
and discovery.

Resolves: rdar://127883018
@xedin xedin force-pushed the move-swift-version-into-its-own-decl branch from 31660fb to ef1f1a5 Compare May 10, 2024 17:15
@xedin xedin requested a review from jakepetroules May 10, 2024 17:15
@xedin
Copy link
Contributor Author

xedin commented May 10, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 10, 2024

@swift-ci please test Windows platform

@xedin xedin merged commit 9183b7c into swiftlang:main May 11, 2024
5 checks passed
xedin added a commit that referenced this pull request May 16, 2024
- Explanation:

Implementation of SE-0435 proposal.

Add a new Swift target setting API, similar to `enable{Upcoming,
Experimental}Feature`,
to specify a Swift language version that should be used to build the
target, if such
version is not specified, fallback to the current language version
determination logic.

- Scope: TargetDescription API and build system.

- Main Branch PRs:
#7439,
#7544,
#7550,
#7557

- Radar: rdar://125732014

- Risk: Low

- Reviewed By: @MaxDesiatov @bnbarham 

- Testing: Added new test-cases to the test suite.
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