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 <dpranke@google.com> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/master@{#69463}
This commit is contained in:
parent
e3bbf2bf24
commit
7c182bd65f
12
BUILD.gn
12
BUILD.gn
@ -369,7 +369,8 @@ v8_toolset_for_shell = "host"
|
||||
#
|
||||
|
||||
config("internal_config_base") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
# Only targets in this file and its subdirs can depend on this.
|
||||
visibility = [ "./*" ]
|
||||
|
||||
configs = [ ":v8_tracing_config" ]
|
||||
|
||||
@ -382,7 +383,8 @@ config("internal_config_base") {
|
||||
|
||||
config("internal_config") {
|
||||
defines = []
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
# Only targets in this file and its subdirs can depend on this.
|
||||
visibility = [ "./*" ]
|
||||
|
||||
configs = [
|
||||
"//build/config/compiler:wexit_time_destructors",
|
||||
@ -502,7 +504,8 @@ config("v8_header_features") {
|
||||
# Put defines here that are only used in our internal files and NEVER in
|
||||
# external headers that embedders (such as chromium and node) might include.
|
||||
config("features") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
# Only targets in this file and its subdirs can depend on this.
|
||||
visibility = [ "./*" ]
|
||||
|
||||
defines = []
|
||||
|
||||
@ -632,7 +635,8 @@ config("features") {
|
||||
}
|
||||
|
||||
config("toolchain") {
|
||||
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
||||
# Only targets in this file and its subdirs can depend on this.
|
||||
visibility = [ "./*" ]
|
||||
|
||||
defines = []
|
||||
cflags = []
|
||||
|
2
third_party/inspector_protocol/BUILD.gn
vendored
2
third_party/inspector_protocol/BUILD.gn
vendored
@ -5,7 +5,7 @@
|
||||
import("../../gni/v8.gni")
|
||||
|
||||
config("crdtp_config") {
|
||||
visibility = [ "../../src/inspector:*" ]
|
||||
visibility = [ "../../src/inspector:*", ":*" ]
|
||||
configs = [ "../../:internal_config" ]
|
||||
include_dirs = [ "../../include" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user