~/talk

Bazel’s Take on (Cc) Shared Libraries

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

cc_shared_library in Bazel uses aspects to walk dependency edges, emit graph_node_info and combine that with cc_shared_library_info to decide which object files to link and which transitive cc libraries to exclude. the rule is the core rule that relies on aspects, so custom rules that emit cc_info can be wrongly treated as linkable and cause duplicate-link failures. fixes are to provide cc_shared_library_hint_info to control aspect propagation or wrap/hide emitted cc_info so the aspect ignores those rules.

AI-written summary · about

  1. 0:00Bazel shared libraries intro
  2. 1:28Bazel 7 CC shared library changes
  3. 3:58CC shared library duplicate symbols
  4. 6:06Bazel aspects and graph info
  5. 9:00Custom rules and the all-seeing eye problem
  6. 10:49Controlling dependency visibility
~/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.