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

Allow swiftdoc in compile_module_interface #1088

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,8 @@ def compile_module_interface(
module_name,
swiftinterface_file,
swift_infos,
swift_toolchain):
swift_toolchain,
swiftdoc = None):
"""Compiles a Swift module interface.

Args:
Expand All @@ -2019,6 +2020,8 @@ def compile_module_interface(
swift_infos: A list of `SwiftInfo` providers from dependencies of the
target being compiled.
swift_toolchain: The `SwiftToolchainInfo` provider of the toolchain.
swiftdoc: An optional `.swiftdoc` file to propagate in the created
SwiftInfo

Returns:
A Swift module context (as returned by `swift_common.create_module`)
Expand Down Expand Up @@ -2108,7 +2111,7 @@ def compile_module_interface(
feature_name = SWIFT_FEATURE_SYSTEM_MODULE,
),
swift = create_swift_module(
swiftdoc = None,
swiftdoc = swiftdoc,
swiftinterface = swiftinterface_file,
swiftmodule = swiftmodule_file,
),
Expand Down