Fix Fuchsia build. (#2868)
Most auto-generated files included by the SPIRV-Tools sources
do not have a proper newline at the end of file, creating a
hundred of compiler warnings, and even some build failures
when BUILD.gn is used for the Fuchsia build.
This fixes the issue by disabling the warning entirely.
diff --git a/BUILD.gn b/BUILD.gn
index 970e295..ef83476 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -288,7 +288,10 @@
configs = [ ":spvtools_public_config" ]
if (is_clang) {
- cflags = [ "-Wno-implicit-fallthrough" ]
+ cflags = [
+ "-Wno-implicit-fallthrough",
+ "-Wno-newline-eof",
+ ]
}
}