We have a huge C++ build and every time we make a change in one of the Bazel macros affecting attributes of many C++ targets it takes hours to validate the change. Example: change the order of includes for all compilations. I am looking for an easy to implement (even if hacky) way to reduce validation time by making it fail fast.
I toyed with the idea to use compiler option to only perform syntax checking and skip producing binary. When I tried that Bazel naturally stopped after the first compilation complaining that expected object file was not produced. Even “—keep_going” flag does not let it go any further. And obviously all the linking steps are predictably going to fail.
Any wild ideas how to make that partial but failing fast validation?
Konstantin