~/talk

Creating C++ Toolchains Easily

Talkat BazelCon 2024 · 2024-10-14..10-15· [c-and-cpp]
links:none on file
links:none on file
slides:none on file

New rules_cc toolchain mechanism defines C++ toolchains as rule-based use labels not strings mappings: a cc_toolchain points to a cc_tool_map that maps action types (C compile, C++ compile, link) to tools like clang, lld, ar and their data (built‑in headers). Toolchains add ordered args and features to expand variables into command lines, catching typos at build file parse time. It’s already deployed in Pigweed and rule_cc CI, supports Linux/Mac and Raspberry Pi Pico cross‑builds, and largely works though an experimental shim and migration docs remain.

AI-written summary · about

  1. 0:00C++ toolchains intro
  2. 7:10Legacy toolchain problems
  3. 10:20New config basics
  4. 16:37Core toolchain constructs
  5. 22:13Adoption and future
  6. 24:23Q&A: Migration testing
  7. 30:23Q&A: Compatibility safety
~/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.