Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Added the --stack-evolution option #56

Merged
merged 3 commits into from
Nov 4, 2021
Merged

Added the --stack-evolution option #56

merged 3 commits into from
Nov 4, 2021

Conversation

bok-
Copy link
Contributor

@bok- bok- commented Nov 4, 2021

Previously we would enable Library Evolution (eg. BUILD_LIBRARY_FOR_DISTRIBUTION=YES) only on the targets that were specified on the command line. This is to work around issues with dependencies like swift-nio that have annotations for library evolution, but that cannot be compiled with evolution enabled, and have no plans to support it anytime soon.

This is can be inefficient though as it means fiddling with the targets list in order to enable library evolution when you do need it turned on for dependencies as well (eg. you can't build an XCFramework if you depend on SwiftProtobuf because library evolution also raises the minimum supported platform versions).

The new option added in this PR, --stack-evolution, helps by turning on BUILD_LIBRARY_FOR_DISTRIBUTION=YES for the entire build stack instead of just the specified targets.

@bok- bok- added enhancement New feature or request minor A minor change according to semver labels Nov 4, 2021
@bok- bok- merged commit 859acbb into main Nov 4, 2021
@bok- bok- deleted the feature/stack-evolution branch November 4, 2021 11:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request minor A minor change according to semver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant