Commit 24f3d30c by Maksim Sisov Committed by Alexis Hétu

GCC: use Wno-error=header-hygiene only with clang.

There is no sense in passing -Wno-error=header-hygiene if -Wno-header-hygiene is not passed (gcc case). Thus, use -Wno-error=header-hygiene only with clang. Bug: chromium:819294 Change-Id: I01bd9771352ab2e8827f1fdd493eb89bb719dd0f Reviewed-on: https://swiftshader-review.googlesource.com/c/24428 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 8f71f731
...@@ -55,7 +55,9 @@ config("swiftshader_llvm_private_config") { ...@@ -55,7 +55,9 @@ config("swiftshader_llvm_private_config") {
} }
if (is_clang) { if (is_clang) {
cflags += [ "-Wno-header-hygiene" ] cflags += [ "-Wno-header-hygiene",
"-Wno-error=header-hygiene"
]
if (target_cpu == "x86" || target_cpu == "x64") { if (target_cpu == "x86" || target_cpu == "x64") {
cflags += [ "-msse2" ] cflags += [ "-msse2" ]
} }
...@@ -70,7 +72,6 @@ config("swiftshader_llvm_private_config") { ...@@ -70,7 +72,6 @@ config("swiftshader_llvm_private_config") {
"-Wno-unused-private-field", "-Wno-unused-private-field",
"-Wno-unused-result", "-Wno-unused-result",
"-Wno-unused-variable", "-Wno-unused-variable",
"-Wno-error=header-hygiene",
] ]
defines = [ defines = [
......
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