You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature to opt out of tracking .swiftdoc and .swiftsourceinfo Files (#1179)
This PR introduces configuration options aimed at optimizing CI build
processes by excluding non-essential Swift documentation and source info
files, files that don't serve as inputs to other build targets. By
introducing flags to control the exclusion of these files, we aim to
reduce unnecessary network I/O and improve build performance in specific
CI environments. (non-dev facing only)
Features Introduced:
- `swift.emit_swiftdoc`
- This feature is enabled by default.
- Opting out of this feature will prevent .swiftdoc files from being
tracked by `SwiftInfo` provider, though they will still be generated by
the Swift compiler.
- These documentation files are generally used for IDE features and are
not required in certain CI contexts, such as non-developer-facing
validation suites.
- `swift.emit_swiftsourceinfo`
- This feature is enabled by default.
- When this feature is disabled, .swiftsourceinfo files, which support
source-level debugging, will also be excluded from build outputs and
will not be tracked by `SwiftInfo` provider.
It is important to note that, by default, the Swift compiler generates
.swiftdoc and .swiftsourceinfo files as part of the output when using
the `-emit-module` flag. As of now, this behavior is consistent, given
the absence of compiler options in Swift that permit controlling the
generation of these files.
0 commit comments