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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Detect embedded swift in flags #8693

wants to merge 1 commit into from

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

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.

3 participants