~/talk

The State of Compilation Database in Bazel

Talkat BazelCon 2024 · 2024-10-14..10-15· [developer-experience]
links:none on file
slides:none on file

Compares four concrete ways to produce compile_commands.json for Bazel: running a capture tool like Bear (requires client mode or disabling sandbox and a real full build), injecting extra actions (full build, action listener, experimental flag), querying the analysis graph with action graph query (no full build but misses tree artifact–generated actions), and using aspects which here reuse the C++ action object so argv is expanded at execution to capture commands for action templates that create tree-artifact compiles — aspects are chosen and work for tree artifacts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Generating compilation DB in Bazel
  3. 2:08Build approach explained
  4. 3:13Extra actions for compilation DB
  5. 4:38Action graph query overview
  6. 6:01Aspect-based compilation DB
  7. 7:29Handling tree artifacts
  8. 9:59Conclusion and future collaboration
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.