| Index: third_party/yasm/BUILD.gn
|
| diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
|
| index 23e160e14b19f70eaee268c67b557b58bf1befac..dc6c1166142a00266349d6a4650a2dfba63448dd 100644
|
| --- a/third_party/yasm/BUILD.gn
|
| +++ b/third_party/yasm/BUILD.gn
|
| @@ -148,16 +148,19 @@ if (current_toolchain == host_toolchain) {
|
| "source/patched-yasm/tools/re2c/translate.c",
|
| ]
|
|
|
| + config("re2c_warnings") {
|
| + # re2c is missing CLOSEVOP from one switch.
|
| + if (is_posix || is_clang) {
|
| + cflags = [ "-Wno-switch" ]
|
| + }
|
| + }
|
| +
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| configs += [
|
| ":yasm_config",
|
| "//build/config/compiler:no_chromium_code",
|
| + ":re2c_warnings",
|
| ]
|
| -
|
| - # re2c is missing CLOSEVOP from one switch.
|
| - if (is_posix) {
|
| - cflags = [ "-Wno-switch" ]
|
| - }
|
| deps = [
|
| "//build/config/sanitizers:deps",
|
| ]
|
|
|