diff options
Diffstat (limited to 'third_party/hunspell/BUILD.gn')
-rw-r--r-- | third_party/hunspell/BUILD.gn | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/third_party/hunspell/BUILD.gn b/third_party/hunspell/BUILD.gn index 9e9f249..87f5aec 100644 --- a/third_party/hunspell/BUILD.gn +++ b/third_party/hunspell/BUILD.gn @@ -10,6 +10,12 @@ config("hunspell_config") { ] } +config("hunspell_warnings") { + if (is_clang) { + cflags = [ "-Wno-unused-private-field" ] + } +} + source_set("hunspell") { sources = [ "google/bdict.cc", @@ -51,15 +57,11 @@ source_set("hunspell") { "src/parsers/textparser.hxx", ] - config("hunspell_warnings") { - if (is_clang) { - cflags = [ "-Wno-unused-private-field" ] - } - } - configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", + + # Must be after no_chromium_code for warning flags to be ordered correctly. ":hunspell_warnings", ] public_configs = [ ":hunspell_config" ] |