OSDN Git Service

Fix for Subzero compilation on x86
authorAlexis Hetu <sugoi@google.com>
Wed, 15 Feb 2017 16:44:14 +0000 (11:44 -0500)
committerAlexis Hétu <sugoi@google.com>
Wed, 15 Feb 2017 16:49:17 +0000 (16:49 +0000)
Silence a few warnings within the LLVM code used by Subzero
which ended up being treated as errors when compiling
Chromium for x86.

Change-Id: If4d3c13ce0b01185d59a2cd064b2bad537639b94
Reviewed-on: https://swiftshader-review.googlesource.com/8813
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Reactor/BUILD.gn

index d74f06a..91d46b3 100644 (file)
@@ -114,6 +114,13 @@ config("swiftshader_reactor_with_subzero_private_config") {
       "/wd4800",
     ]
 
+    if (use_swiftshader_with_subzero) {
+      cflags += [
+        "/wd4018",  # signed/unsigned mismatch (llvm)
+        "/wd4310",  # cast truncates constant value (llvm)
+      ]
+    }
+
     if (is_clang) {
       if (is_debug) {
         cflags += [ "-Wno-sign-compare" ]