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") {
cflags += [ "-Wno-error" ]
}
if (is_clang && (target_cpu == "x86" || target_cpu == "x64")) {
cflags += [
"-msse2",
"-Wno-header-hygiene",
"-Wno-null-dereference",
]
} else {
# cflags += [ "-Wno-unused-but-set-variable" ]
if (is_clang) {
cflags += [ "-Wno-header-hygiene" ]
if (target_cpu == "x86" || target_cpu == "x64") {
cflags += [ "-msse2" ]
}
}
cflags += [
"-Wno-attributes",
"-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