cos_gpu_installer_v1: compile without -Werror=strict-prototypes

New LLVM versions changed the behavior of -Wstrict-prototypes. It now
shows diagnostics where it previously didn't. Since all kernel code
compiles with -Werror=strict-prototypes, nvidia drivers are compiled
with -Werror=strict-prototypes. As a result, the new -Wstrict-prototypes
behavior breaks nvidia driver compilation.

We can work around this by implementing a compiler wrapper that removes
-Werror=strict-prototypes from the compiler command line.

BUG=b/257271340
TEST=Compile 470 drivers on ToT
RELEASE_NOTE=None

Change-Id: I967d8ae16b934772fa2e576ebda19f51e8031604
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/41196
Reviewed-by: Meena Shanmugam <meenashanmugam@google.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Tested-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
1 file changed
tree: c5366b3000a02a50baa56b875448e67ec1fabd16
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. .gitignore
  6. BUILD.bazel
  7. cloudbuild.yaml
  8. CONTRIBUTING.md
  9. deps.bzl
  10. go.mod
  11. go.sum
  12. LICENSE
  13. README.md
  14. run_tests.sh
  15. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.