Skip to content

Commit 7c182bd

Browse files
dprankeCommit Bot
authored andcommitted
Fix visiblity rules for configs enforced by the latest GN version.
Prior versions of GN had a bug (gn:22) where visibility rules for configs weren't being enforced properly. This CL tweaks the visibility settings of some configs to conform to the latest version. Change-Id: Ic5d827a1f2774278d3894f67fe52bfca836c0409 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2360909 Commit-Queue: Dirk Pranke <[email protected]> Reviewed-by: Adam Klein <[email protected]> Cr-Commit-Position: refs/heads/master@{#69463}
1 parent e3bbf2b commit 7c182bd

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

BUILD.gn

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ v8_toolset_for_shell = "host"
369369
#
370370

371371
config("internal_config_base") {
372-
visibility = [ ":*" ] # Only targets in this file can depend on this.
372+
# Only targets in this file and its subdirs can depend on this.
373+
visibility = [ "./*" ]
373374

374375
configs = [ ":v8_tracing_config" ]
375376

@@ -382,7 +383,8 @@ config("internal_config_base") {
382383

383384
config("internal_config") {
384385
defines = []
385-
visibility = [ ":*" ] # Only targets in this file can depend on this.
386+
# Only targets in this file and its subdirs can depend on this.
387+
visibility = [ "./*" ]
386388

387389
configs = [
388390
"//build/config/compiler:wexit_time_destructors",
@@ -502,7 +504,8 @@ config("v8_header_features") {
502504
# Put defines here that are only used in our internal files and NEVER in
503505
# external headers that embedders (such as chromium and node) might include.
504506
config("features") {
505-
visibility = [ ":*" ] # Only targets in this file can depend on this.
507+
# Only targets in this file and its subdirs can depend on this.
508+
visibility = [ "./*" ]
506509

507510
defines = []
508511

@@ -632,7 +635,8 @@ config("features") {
632635
}
633636

634637
config("toolchain") {
635-
visibility = [ ":*" ] # Only targets in this file can depend on this.
638+
# Only targets in this file and its subdirs can depend on this.
639+
visibility = [ "./*" ]
636640

637641
defines = []
638642
cflags = []

third_party/inspector_protocol/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import("../../gni/v8.gni")
66

77
config("crdtp_config") {
8-
visibility = [ "../../src/inspector:*" ]
8+
visibility = [ "../../src/inspector:*", ":*" ]
99
configs = [ "../../:internal_config" ]
1010
include_dirs = [ "../../include" ]
1111
}

0 commit comments

Comments
 (0)