Commit d0a4800e by Sergey Ulanov

Disable header-hygiene warnings on all platforms

Previously -Wno-header-hygiene was added to cflags only on x64, so the compiler was generating a lot of warnings when compiling for arm64. Now this flag is added on all platforms. Also removed -Wno-null-dereference - it doesn't generate any warnings. Change-Id: Id145404dba169da64a6febdec2732aec681a11bd Reviewed-on: https://swiftshader-review.googlesource.com/c/22028Tested-by: 's avatarSergey Ulanov <sergeyu@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 3957b7f8
...@@ -54,15 +54,13 @@ config("swiftshader_llvm_private_config") { ...@@ -54,15 +54,13 @@ config("swiftshader_llvm_private_config") {
cflags += [ "-Wno-error" ] cflags += [ "-Wno-error" ]
} }
if (is_clang && (target_cpu == "x86" || target_cpu == "x64")) { if (is_clang) {
cflags += [ cflags += [ "-Wno-header-hygiene" ]
"-msse2", if (target_cpu == "x86" || target_cpu == "x64") {
"-Wno-header-hygiene", cflags += [ "-msse2" ]
"-Wno-null-dereference", }
]
} else {
# cflags += [ "-Wno-unused-but-set-variable" ]
} }
cflags += [ cflags += [
"-Wno-attributes", "-Wno-attributes",
"-Wno-deprecated-declarations", "-Wno-deprecated-declarations",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment