Skip to content

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

Merged
noah-thor merged 1 commit into
apple:mainfrom
noah-thor:swift_configuration_extra
Oct 6, 2026
Merged

noah-thor merged 1 commit into
apple:mainfrom
noah-thor:swift_configuration_extra

Conversation

@noah-thor

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

SWIFT_CONFIGURATION is a := assignment carrying -warnings-as-errors and -enable-testing, 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.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

SWIFT_CONFIGURATION is a := assignment carrying -warnings-as-errors and
-enable-testing, 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.
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 25.76%
Integration 66.23%
Combined 75.93%

@noah-thor
noah-thor merged commit ddc3169 into apple:main Oct 6, 2026
8 of 10 checks passed
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