Skip to content

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

Merged
brentleyjones merged 1 commit intomasterfrom
bj/add-a-feature-to-always-include-all-headers-as-inputs-to-swiftcompile-actions-even-when-using-explicit-modules
Jun 21, 2024
Merged

Add a feature to always include all headers as inputs to SwiftCompile actions, even when using explicit modules#1249
brentleyjones merged 1 commit intomasterfrom
bj/add-a-feature-to-always-include-all-headers-as-inputs-to-swiftcompile-actions-even-when-using-explicit-modules

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
@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