rules_proto
rules_proto copied to clipboard
How to set `--fatal_warnings`?
Is there a way to enforce that every proto_library target are compiled with --fatal_warnings?
For reference, this flag was added here, and causes the compilation to fail if a warning is raised, like -Werror with GCC.
Try using --protocopt=--fatal_warning.
--protocopt=--fatal_warnings indeed seems to work. I'm happy to either close this or leave it open to have a way to set this directly in the toolchain configuration in Bazel - not sure what's the most common way to do this kind of things.
We should have a way to specify protoc-opts in the (not-yet-existing) proto_toolchain in addition to the command-line.