Hi,
I have a custom C++ toolchain and require warnings as errors to be turned on for our primary repo, however we do not want to get warnings as errors from all our third-party repositories. I am after a way to disable features/change Command-line options when compiling anything under external.
I don't want to patch all the external build files unless needed.
As far as I am aware features have a global/package/target scope.
I don't want to wrap the cc_library in a macro unless unavoidable.
What is the best way of achieving warnings as errors for production code?
This is currently in bazel 5.3.2 - however we do plan to migrate to 5.4.0 then 6.0.0
Thanks
James