Skip to content

Commit

Permalink
Add visibility to Starlark flags
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 508369461
(cherry picked from commit 7f5fbf8)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
allevato authored and brentleyjones committed Oct 4, 2024
1 parent d8cc3ea commit 884373e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swift/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ per_module_swiftcopt_flag(
bool_setting(
name = "emit_swiftinterface",
build_setting_default = False,
visibility = ["//visibility:public"],
)

# Configuration setting for enabling the generation of private swiftinterface files (e.g. those for `@_spi`).
Expand Down Expand Up @@ -354,13 +355,15 @@ config_setting(
bool_setting(
name = "force_apple_target",
build_setting_default = False,
visibility = ["//visibility:public"],
)

# Allows a user to override the default Swift driver during a build, if the
# toolchain is using the default.
label_flag(
name = "default_swift_executable",
build_setting_default = ":empty",
visibility = ["//visibility:public"],
)

# Empty filegroup used as the default value for `:default_swift_executable`
Expand All @@ -374,6 +377,7 @@ filegroup(
label_flag(
name = "module_mapping",
build_setting_default = ":empty_module_mapping",
visibility = ["//visibility:public"],
)

# The default empty module mapping used when the `:module_mapping` flag is not
Expand Down

0 comments on commit 884373e

Please sign in to comment.