Skip to content

Add a SWIFT_CONFIGURATION_EXTRA hook for extra swift build flags - #947

Open
noah-thor wants to merge 1 commit into
apple:mainfrom
noah-thor:swift-config-extra
Open

noah-thor wants to merge 1 commit into
apple:mainfrom
noah-thor:swift-config-extra

Conversation

@noah-thor

Copy link
Copy Markdown
Contributor

SWIFT_CONFIGURATION is a := assignment carrying -warnings-as-errors, --disable-automatic-resolution, and the scratch-path flags, so a caller wanting to add a flag had to override the whole variable and thereby drop those. Append an overridable SWIFT_CONFIGURATION_EXTRA instead, so extra flags compose with the existing configuration rather than replacing it.

Empty by default, so this is a no-op unless set.

SWIFT_CONFIGURATION is a := assignment carrying -warnings-as-errors,
--disable-automatic-resolution, and the scratch-path flags, so a caller
wanting to add a flag had to override the whole variable and thereby drop
those. Append an overridable SWIFT_CONFIGURATION_EXTRA instead, so extra
flags compose with the existing configuration rather than replacing it.

Empty by default, so this is a no-op unless set.

This branch has not been deployed

No deployments
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