Skip to content

Conversation

@tshortli
Copy link
Contributor

Instead of treating -dump-availability-scopes as a distinct frontend action, make it a debugging option that causes extra debugging output to be emitted at the end of compilation for any action type. This allows the flag to be composed with the -typecheck-module-from-interface and -compile-module-from-interface actions, which can be useful for debugging compiler behavior when building .swiftinterface files.

The -dump-clang-lookup-tables and -print-clang-stats flags have also been updated to work with module interface builds as well.

Allowing it to be specified in conjunction with any frontend mode makes it a
more flexible debugging tool.
@tshortli tshortli requested a review from artemcm as a code owner August 12, 2025 17:23
@tshortli tshortli enabled auto-merge August 12, 2025 17:24
…actions.

When building a module interface for the -typecheck-module-from-interface or
-compile-module-from-interface actions, inherit and honor compiler debugging
options and emit debugging output at the end of the interface build.
@tshortli tshortli force-pushed the refactor-dump-availability-scopes branch from b72a9dd to 5d3d934 Compare August 12, 2025 22:50
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test macOS

@tshortli tshortli merged commit 770c633 into swiftlang:main Aug 13, 2025
3 checks passed
@tshortli tshortli deleted the refactor-dump-availability-scopes branch August 13, 2025 15:08
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