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

Add visibility to Starlark flags #1338

Merged
merged 1 commit into from
Oct 4, 2024
Merged
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
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