| Index: third_party/yasm/BUILD.gn
|
| diff --git a/third_party/yasm/BUILD.gn b/third_party/yasm/BUILD.gn
|
| index cd9b4532e6c8b1f9d052ac12702392d367288006..ffa17d9021d2f551eb0073aef96a0fac6cb318d4 100644
|
| --- a/third_party/yasm/BUILD.gn
|
| +++ b/third_party/yasm/BUILD.gn
|
| @@ -143,13 +143,13 @@ if (current_toolchain == host_toolchain) {
|
| configs += [
|
| ":yasm_config",
|
| "//build/config/compiler:no_chromium_code",
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + "//build/config/compiler:no_size_t_to_int_warning",
|
| ]
|
|
|
| # re2c is missing CLOSEVOP from one switch.
|
| if (is_posix) {
|
| cflags = [ "-Wno-switch" ]
|
| - } else if (is_win) {
|
| - cflags = [ "/wd4267" ] # size_t to int conversion.
|
| }
|
| }
|
|
|
| @@ -240,6 +240,8 @@ if (current_toolchain == host_toolchain) {
|
| configs += [
|
| ":yasm_config",
|
| "//build/config/compiler:no_chromium_code",
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + "//build/config/compiler:no_size_t_to_int_warning",
|
| ]
|
|
|
| # Yasm generates a bunch of .c files which its source file #include.
|
| @@ -248,9 +250,7 @@ if (current_toolchain == host_toolchain) {
|
| # directory, but the gen_x86_insn.py script does not make this easy.
|
| include_dirs = [ yasm_gen_include_dir ]
|
|
|
| - if (is_win) {
|
| - cflags = [ "/wd4267" ] # size_t to int conversion.
|
| - } else {
|
| + if (!is_win) {
|
| cflags = [
|
| "-ansi",
|
| "-pedantic",
|
|
|