From 884373e7f365b015d4d09000adf5f9f485c5418a Mon Sep 17 00:00:00 2001 From: Tony Allevato Date: Thu, 9 Feb 2023 07:34:05 -0800 Subject: [PATCH] Add visibility to Starlark flags PiperOrigin-RevId: 508369461 (cherry picked from commit 7f5fbf8d9283cd1262fe625883533da419c4c5a7) Signed-off-by: Brentley Jones --- swift/BUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swift/BUILD b/swift/BUILD index 12a1cef1f..ee5a2e33a 100644 --- a/swift/BUILD +++ b/swift/BUILD @@ -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`). @@ -354,6 +355,7 @@ 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 @@ -361,6 +363,7 @@ bool_setting( label_flag( name = "default_swift_executable", build_setting_default = ":empty", + visibility = ["//visibility:public"], ) # Empty filegroup used as the default value for `:default_swift_executable` @@ -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