summaryrefslogtreecommitdiffstats
path: root/third_party/yasm
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-07-24 12:54:11 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-24 19:55:05 +0000
commit138fb0008eb72a6afcfc5e991a42f4e45f85fab0 (patch)
tree727a8b8b51e2901c3c2af1b94eaebf9d19030af7 /third_party/yasm
parent9bf9178bfe5fbe51152526d440169c862c3bedea (diff)
downloadchromium_src-138fb0008eb72a6afcfc5e991a42f4e45f85fab0.zip
chromium_src-138fb0008eb72a6afcfc5e991a42f4e45f85fab0.tar.gz
chromium_src-138fb0008eb72a6afcfc5e991a42f4e45f85fab0.tar.bz2
Really suppress -Wswitch warnings in third_party/yasm for GN build.
BUG=505308 Review URL: https://codereview.chromium.org/1257613004 Cr-Commit-Position: refs/heads/master@{#340316}
Diffstat (limited to 'third_party/yasm')
-rw-r--r--third_party/yasm/BUILD.gn13
1 files changed, 8 insertions, 5 deletions
diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
index 23e160e..dc6c116 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",
]