Skip to content

[6.2][Frontend] Add a way to print features supported by the compiler #81518

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 6 commits into from
May 15, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 14, 2025

Cherry-pick of #80833


  • Explanation:

    This is required to support swift package migrate command.

    • Replace -emit-supported-features with -emit-supported-arguments mode because "features" part was never implemented.
    • Introduce -print-supported-features option that prints supported upcoming/experimental features and their metadata.
    • Rename Feature APIs from adoption to migration (update feature suffix from :adoption to :migrate)
  • Main Branch PR: [Frontend] Add a way to print features supported by the compiler #80833

  • Risk: Low (Adds a new -print-supported-features compiler flag).

  • Reviewed By: @artemcm

  • Resolves: rdar://148124973

  • Testing: Added new tests to the suite.

@xedin xedin requested a review from a team as a code owner May 14, 2025 20:32
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 14, 2025
@xedin
Copy link
Contributor Author

xedin commented May 14, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 14, 2025

Apparently we have some more cherry-picks that we need to do before this can go in.

Just noticed this as I was looking at making other changes.

(cherry picked from commit 3ff9463)
@xedin xedin force-pushed the rdar-148124973-6.2 branch from 268e328 to 4adffcd Compare May 14, 2025 23:08
@xedin
Copy link
Contributor Author

xedin commented May 14, 2025

@swift-ci please test

xedin added 5 commits May 14, 2025 20:28
This is a replacement for `-emit-supported-features` that prints
all of the upcoming/experimental features supported by the compiler
with some additional meta information in JSON format to stdout.

(cherry picked from commit 55bd906)
…ed-arguments`

The "featues" part was never actually implemented and Swift Driver
is replying on information about arguments, so instead of removing
this mode, let's scope it down to "arguments" to be deprecated in
the future.

(cherry picked from commit 18703d6)
@xedin xedin force-pushed the rdar-148124973-6.2 branch from 4adffcd to de6ef08 Compare May 15, 2025 03:28
@xedin
Copy link
Contributor Author

xedin commented May 15, 2025

@swift-ci please test

@xedin xedin merged commit ee3aca2 into swiftlang:release/6.2 May 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants