Index: url/BUILD.gn |
diff --git a/url/BUILD.gn b/url/BUILD.gn |
index 964a08bde6a4e1ef68c2d72912b5d5aef299f0e5..03e90cb3fff083757c979c0cc9630e69337fefa0 100644 |
--- a/url/BUILD.gn |
+++ b/url/BUILD.gn |
@@ -58,11 +58,11 @@ component("url") { |
defines = [ "URL_IMPLEMENTATION" ] |
- configs += [ |
- ":url_icu_config", |
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
- "//build/config/compiler:no_size_t_to_int_warning", |
- ] |
+ configs += [ ":url_icu_config" ] |
+ |
+ if (is_win) { |
+ cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
+ } |
deps = [ |
"//base", |
@@ -101,15 +101,19 @@ if (!is_android) { |
"url_util_unittest.cc", |
] |
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
- configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
- |
#if (is_posix && !is_mac && !is_ios) { |
# if (use_allocator!="none") { |
# deps += "//base/allocator" |
# } |
#} |
+ if (is_win) { |
+ cflags = [ |
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
+ "/wd4267", |
+ ] |
+ } |
+ |
deps = [ |
":url", |
"//base", |