Index: test/cctest/BUILD.gn |
diff --git a/test/cctest/BUILD.gn b/test/cctest/BUILD.gn |
index 6a7f1912525b30fb317ef7a46e867a7876e473fd..1461c920ee1fe08844d5bda189f291c9bca757ed 100644 |
--- a/test/cctest/BUILD.gn |
+++ b/test/cctest/BUILD.gn |
@@ -316,6 +316,18 @@ executable("cctest") { |
} else { |
deps += [ "../..:v8" ] |
} |
+ |
+ if (is_win) { |
+ # This warning is benignly triggered by the U16 and U32 macros in |
+ # bytecode-utils.h. |
+ # C4309: 'static_cast': truncation of constant value |
+ cflags = [ "/wd4309" ] |
+ |
+ # Suppress warnings about importing locally defined symbols. |
+ if (is_component_build) { |
+ ldflags = [ "/ignore:4049", "/ignore:4217" ] |
+ } |
+ } |
} |
action("resources") { |