with_cfg: Making transitions more accessible
summary
with_cfg is a Starlark library that wraps existing Bazel rules to apply option transitions with minimal boilerplate, producing new rules like cc_asan_test and java_21_library that build their deps with specific flags while keeping other deps unchanged. It provides builder methods like extend and reset to append COPT/LINKOPT or exclude attributes, supports selects, requires a top‑level original-settings target, and works on Bazel 6.4+.
AI-written summary · about
related talks
23mPolyglot Builds with Bazel
27mRules_lint: Formatting and Linting All Languages
09mBazel: {Fast, Correct, Seamless}: Choose 3
09mLightning Talk – Bazel UI
10mThe State of Compilation Database in Bazel
16mHermetic builds with Bazel
31mBazel: Do We Really Need Another Build Tool?
06mLightning Talk: Do You Love or Hate Your C++ Build System?
