Skip to content

[SR-14718] Only pass -enable-library-evolution for PackageDescription and PackagePlugin on macOS #3526

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

abertelrud
Copy link
Contributor

Motivation:

Because PackageDescription unintentionally exports Foundation (for which a fix was attempted but then reverted after it broke some packages — see SR-14718), we can only enable library evolution on Darwin platforms.

Modifications:

  • conditionalize passing of -enable-library-evolution on the macOS platform

rdar://78827075

…ion and PackagePlugin on macOS

Because PackageDescription unintentionally exports Foundation (for which a fix was attempted but then reverted after it broke some packages), we can only enable library evolution on Darwin platforms.

rdar://78827075
@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud requested a review from benlangmuir June 3, 2021 18:58
@abertelrud abertelrud merged commit 6e7bb87 into swiftlang:main Jun 3, 2021
drodriguez added a commit to drodriguez/swift-package-manager that referenced this pull request Feb 15, 2023
Reverts 1998284 / swiftlang#3526

Related to SR-14718 (swiftlang#4416).

Since swiftlang#3526 was merged, swiftlang#5874 tried to apply the original idea of using
`@_implementationOnly Foundation` in PackageDescription/Plugin to avoid
leaking `Foundation` into the manifests.
neonichu pushed a commit that referenced this pull request Feb 21, 2023
…#6157)

Reverts 1998284 / #3526

Related to SR-14718 (#4416).

Since #3526 was merged, #5874 tried to apply the original idea of using
`@_implementationOnly Foundation` in PackageDescription/Plugin to avoid
leaking `Foundation` into the manifests.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants