Skip to content

Commit 884373e

Browse files
allevatobrentleyjones
authored andcommitted
Add visibility to Starlark flags
PiperOrigin-RevId: 508369461 (cherry picked from commit 7f5fbf8) Signed-off-by: Brentley Jones <[email protected]>
1 parent d8cc3ea commit 884373e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swift/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ per_module_swiftcopt_flag(
322322
bool_setting(
323323
name = "emit_swiftinterface",
324324
build_setting_default = False,
325+
visibility = ["//visibility:public"],
325326
)
326327

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

359361
# Allows a user to override the default Swift driver during a build, if the
360362
# toolchain is using the default.
361363
label_flag(
362364
name = "default_swift_executable",
363365
build_setting_default = ":empty",
366+
visibility = ["//visibility:public"],
364367
)
365368

366369
# Empty filegroup used as the default value for `:default_swift_executable`
@@ -374,6 +377,7 @@ filegroup(
374377
label_flag(
375378
name = "module_mapping",
376379
build_setting_default = ":empty_module_mapping",
380+
visibility = ["//visibility:public"],
377381
)
378382

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

0 commit comments

Comments
 (0)