- compiles faster
- better error messages
- tooling (clangformat) is great
When it came time to cut a release binary you could always also build with gcc - compiles faster
- better error messages
- tooling (clangformat) is great
When it came time to cut a release binary you could always also build with gccOn the other hand, the effort of learning clang options, error messages and paths in order to have two compilers available can wait indefinitely until I really need a second opinion about some compilation error; so far it hasn't happened.
$ bazel build --compiler=my_favorite_compiler //my/fine:program
1: https://github.com/bazelbuild/bazel/wiki/Building-with-a-cus...https://github.com/bazelbuild/bazel/blob/master/tools/cpp/CR...
Build C++
To build C++ targets, you need:
•The Visual C++ compiler.
Whether the developers gave up on the Mingw64 GCC and Clang toolchains or it's a documentation mistake, this statement places Bazel support for Windows in the "don't touch with a 10' pole" category.
But my point was that adopting Bazel is obviously far more complex than adapting existing build scripts and build script generators for Make, Cmake, Ninja etc to use Clang.
Also it’s trivial to change the dev compiler when debugging something that might be a compiler error (it never is though).