summaryrefslogtreecommitdiffstats
path: root/third_party/cld_2
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2015-09-01 11:30:18 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-01 18:30:50 +0000
commit0cb5abbf230f3c30e3499d4e787f059ed723dd3c (patch)
treeaee18f03c7d7aec2938243bf5cd1b8d9b491a98f /third_party/cld_2
parentb6964e616848f11aa1dc6f9ac0a57e2d8d1dac98 (diff)
downloadchromium_src-0cb5abbf230f3c30e3499d4e787f059ed723dd3c.zip
chromium_src-0cb5abbf230f3c30e3499d4e787f059ed723dd3c.tar.gz
chromium_src-0cb5abbf230f3c30e3499d4e787f059ed723dd3c.tar.bz2
Revert of Un-nest configs in GN files. (patchset #3 id:40001 of https://codereview.chromium.org/1318823008/ )
Reason for revert: This breaks why these configs exist in the first place and seriously breaks the clang/win gn build (which is what these configs exist for). Original issue's description: > Un-nest configs in GN files. > > People sometimes nest targets or configs, usually with the assumption that this limits the visibility of a config to within a target. But this nesting provides no visibility restrictions over declaring it outside of a block. > > Un-nest for clarity. > > Committed: https://crrev.com/4af2eac8e84692d94f88504ab6e0b244b88dddcb > Cr-Commit-Position: refs/heads/master@{#346461} TBR=dpranke@chromium.org,brettw@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1316843006 Cr-Commit-Position: refs/heads/master@{#346695}
Diffstat (limited to 'third_party/cld_2')
-rw-r--r--third_party/cld_2/BUILD.gn20
1 files changed, 8 insertions, 12 deletions
diff --git a/third_party/cld_2/BUILD.gn b/third_party/cld_2/BUILD.gn
index 9b05615..fc42c4f 100644
--- a/third_party/cld_2/BUILD.gn
+++ b/third_party/cld_2/BUILD.gn
@@ -33,14 +33,6 @@ cld2_platform_support = "static"
cld2_table_size = 2
-config("cld2_data_warnings") {
- visibility = [ ":*" ]
- if (is_clang) {
- # The generated files don't have braces around subobject initializers.
- cflags = [ "-Wno-missing-braces" ]
- }
-}
-
source_set("cld2_data") {
sources = gypi_values.cld2_data_sources
if (cld2_table_size == 0) {
@@ -54,11 +46,15 @@ source_set("cld2_data") {
"src/public",
]
+ config("cld2_data_warnings") {
+ if (is_clang) {
+ # The generated files don't have braces around subobject initializers.
+ cflags = [ "-Wno-missing-braces" ]
+ }
+ }
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- ":cld2_data_warnings",
- "//build/config/compiler:no_chromium_code",
- ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [ ":cld2_data_warnings" ]
}
# As in the corresponding gyp file, this just builds the core interfaces for