Skip to content

Commit

Permalink
Add copts parameter to compile_module_interface().
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 487024190
  • Loading branch information
Googler authored and swiple-rules-gardener committed Nov 8, 2022
1 parent b9175e6 commit 4e48b7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def compile_module_interface(
*,
actions,
compilation_contexts,
copts = [],
feature_configuration,
module_name,
swiftinterface_file,
Expand All @@ -155,6 +156,7 @@ def compile_module_interface(
Swift-compatible preprocessor defines, header search paths, and so
forth. These are typically retrieved from the `CcInfo` providers of
a target's dependencies.
copts: A list of compiler flags that apply to the target being built.
feature_configuration: A feature configuration obtained from
`swift_common.configure_features`.
module_name: The name of the Swift module being compiled. This must be
Expand Down Expand Up @@ -227,7 +229,7 @@ def compile_module_interface(
swiftmodule_file = swiftmodule_file,
transitive_modules = transitive_modules,
transitive_swiftmodules = transitive_swiftmodules,
user_compile_flags = [],
user_compile_flags = copts,
)

run_toolchain_action(
Expand Down

1 comment on commit 4e48b7a

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.