Skip to content

Detect embedded swift in flags #8693

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2025
Merged

Detect embedded swift in flags #8693

merged 1 commit into from
Jun 1, 2025

Conversation

rauhul
Copy link
Member

@rauhul rauhul commented May 19, 2025

SwiftPM currently only detects Embedded Swift set via a swift settings and uses this to enable/disable a couple features. This is nice, but doesn't handle the case where Embedded is enabled via a user flag, typically set in a toolset.json. This commit updates the logic to also search for "-enable-experimental-feature Embedded" in the various place user flags can be placed.

SwiftPM currently only detects Embedded Swift set via a swift settings
and uses this to enable/disable a couple features. This is nice, but
doesn't handle the case where Embedded is enabled via a user flag,
typically set in a toolset.json. This commit updates the logic to also
search for "-enable-experimental-feature Embedded" in the various place
user flags can be placed.
@kubamracek
Copy link

IIUC, this addresses #8688

@MaxDesiatov
Copy link
Contributor

@swift-ci test

1 similar comment
@kubamracek
Copy link

@swift-ci test

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@MaxDesiatov MaxDesiatov added the needs tests This change needs test coverage label May 30, 2025
Copy link
Member

@dschaefer2 dschaefer2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll add tests later once we get swift build support for the same thing.

@dschaefer2 dschaefer2 merged commit c5d77e5 into main Jun 1, 2025
6 checks passed
@dschaefer2 dschaefer2 deleted the is-embedded-swift branch June 1, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests This change needs test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants