| Index: third_party/cld_2/BUILD.gn
|
| diff --git a/third_party/cld_2/BUILD.gn b/third_party/cld_2/BUILD.gn
|
| index 303dcbf53a8d2427da61e03450e1265f23ad1040..3edb31dae64f1aa62507195832bf80be55cb0f33 100644
|
| --- a/third_party/cld_2/BUILD.gn
|
| +++ b/third_party/cld_2/BUILD.gn
|
| @@ -33,6 +33,14 @@ 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) {
|
| @@ -46,15 +54,11 @@ 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 += [ "//build/config/compiler:no_chromium_code" ]
|
| - configs += [ ":cld2_data_warnings" ]
|
| + configs += [
|
| + ":cld2_data_warnings",
|
| + "//build/config/compiler:no_chromium_code",
|
| + ]
|
| }
|
|
|
| # As in the corresponding gyp file, this just builds the core interfaces for
|
|
|