Florent Castelli: Introduction to the Bazel build system
https://youtu.be/GMx6YwdELl4An introduction to Bazel, the open-source build system designed to make C++ development fast, deterministic, and scalable for any team size.
61
Upvotes
31
u/OrphisFlo I like build tools Apr 27 '26
Presenter here! Let me know if you have any question or comment.
14
u/aruisdante Apr 27 '26
Nice to see more people making talks on bazel in venues outside of the direct bazel community. It helps a lot when trying to explain to people why bazel is useful.
6
u/ninefingerbrad Apr 27 '26
Is remote execution that effective at speeding up builds?
My (limited) experience, outside Bazel, is that streaming the files/dependencies (other headers) to the remote clients ends up taking nearly as much time as just building locally. Especially with modern CPUs. I've seen very little performance boost.
Perhaps Bazel has a ~warm cache at each build node, so that step is much faster?
3
u/ninefingerbrad Apr 27 '26
I've heard that Bazel can struggle with needing different compiler arguments per source file, is this fair/accurate? We have a tool that will use different GCC warning flags per file as we gradually clamp down on compiler warnings. Would that make it difficult for us to switch to Bazel?
3
u/Far_Understanding883 Apr 28 '26
Oh how I wish bazel was not a Java program running in the jvm
1
u/trailingunderscore_ Apr 27 '26
Sounds interesting, I have a project I could try it out on. I'm burnt out on cmake, so maybe this will make managing my sources less frustrating.