Skip to content
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

Add a feature to always include all headers as inputs to SwiftCompile actions, even when using explicit modules #1249

Conversation

brentleyjones
Copy link
Collaborator

When building with explicit modules, Swift compilations do not require any of the headers to be present on disk, because the AST contains all the necessary information (save for a bug(?) in canImport which fails if the headers aren't also present). However, other tooling may want to inspect compilation actions and have access to those headers.

This feature is a no-op for implicit module builds, since the headers are always included to begin with, and it is off by default.

PiperOrigin-RevId: 461668350
(cherry picked from commit 81f7b54)

… actions, even when using explicit modules

When building with explicit modules, Swift compilations do not require any of
the headers to be present on disk, because the AST contains all the necessary
information (save for a bug(?) in `canImport` which fails if the headers aren't
also present). However, other tooling may want to inspect compilation
actions and have access to those headers.

This feature is a no-op for implicit module builds, since the headers are always
included to begin with, and it is off by default.

PiperOrigin-RevId: 461668350
(cherry picked from commit 81f7b54)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones enabled auto-merge (rebase) June 21, 2024 13:26
brentleyjones referenced this pull request Jun 21, 2024
… actions, even when using explicit modules.

When building with explicit modules, Swift compilations do not require any of
the headers to be present on disk, because the AST contains all the necessary
information (save for a bug(?) in `canImport` which fails if the headers aren't
also present). However, other tooling may want to inspect compilation
actions and have access to those headers.

This feature is a no-op for implicit module builds, since the headers are always
included to begin with, and it is off by default.

PiperOrigin-RevId: 461668350
@brentleyjones brentleyjones merged commit 4f4cdfe into master Jun 21, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/add-a-feature-to-always-include-all-headers-as-inputs-to-swiftcompile-actions-even-when-using-explicit-modules branch June 21, 2024 13:41
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