Skip to content

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

Merged
noah-thor merged 1 commit into
apple:mainfrom
noah-thor:swift-config-extra
Oct 7, 2026
Merged

noah-thor merged 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.
@noah-thor
noah-thor merged commit f761ab9 into apple:main Oct 7, 2026
7 checks passed
@noah-thor
noah-thor deleted the swift-config-extra branch October 7, 2026 17:24
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