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>
"/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" ]