Skip to content

Minor fixes for SwiftIfConfig #2772

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 4 commits into from
Aug 3, 2024
Merged

Conversation

DougGregor
Copy link
Member

While integrating this further in the compiler, found a few issues to be fixed here:

  • IfConfigRegionState.evaluate() needs to return syntaxErrorsAllowed, too
  • Version parsing needs to deal with weird malformed versions like ...
  • #if _compiler_version(>=6.0) is supported syntax, so handle it

…llowed

The compiler needs this information, and other clients probably will, too.
In addition to the string-literal form, this compilation conditional
handles the same version check syntax as `#if swift` and `#if compiler`.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor enabled auto-merge August 3, 2024 06:27
@DougGregor DougGregor merged commit 8a2ffd5 into swiftlang:main Aug 3, 2024
3 checks passed
@DougGregor DougGregor deleted the ifconfig-fixes branch August 4, 2024 13:48
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.

1 participant