Skip to content

docs: retire Bazel-provided LLVM build instructions - #1863

Open
adi-IL wants to merge 1 commit into
google:mainfrom
adi-IL:docs/retire-bazel-llvm-install
Open

docs: retire Bazel-provided LLVM build instructions#1863
adi-IL wants to merge 1 commit into
google:mainfrom
adi-IL:docs/retire-bazel-llvm-install

Conversation

@adi-IL

@adi-IL adi-IL commented Aug 25, 2026

Copy link
Copy Markdown

Fixes #3

What was wrong:
The Bazel section in docs/cpp/building.md documented a build without LLVM_INSTALL_PATH that used bazel/llvm.bzl to download LLVM via the llvm-raw repository. As described in #3, the commit at bazel/llvm.bzl:56 is API incompatible with lifetime_annotations/type_lifetimes.cc and updating the commit still fails with missing bazel_skylib expand_template.bzl. The LLVM Bazel build is not actively maintained, and keeping this option increases user confusion and support surface.

What changed:
In docs/cpp/building.md:101, retired the standalone bazel build command without LLVM_INSTALL_PATH. Added a note that building with the Bazel-provided LLVM installation without LLVM_INSTALL_PATH is not supported and was retired per #3, and that the supported Bazel workflow is the prebuilt LLVM tree via LLVM_INSTALL_PATH at docs/cpp/building.md:110. No code or reversible Copybara transforms were touched.

Testing:

  • No code change, docs only.
  • Verified via cargo build --bin cc_bindings_from_rs guidance in CONTRIBUTING.md that the cargo path is the only testable direction on GitHub and is unchanged.
  • The change does not touch reversible transforms like @crate_index//:syn formatting.

The Bazel build that used bazel/llvm.bzl without LLVM_INSTALL_PATH via
the llvm-raw repository is API incompatible with the current Crubit
source and the LLVM Bazel build is not actively maintained. The commit
hash at bazel/llvm.bzl:56 is stale and updating it still fails with
expand_template.bzl missing, as described in the issue.

Retire this option in docs/cpp/building.md: remove the standalone
bazel build command without LLVM_INSTALL_PATH and add a note that the
supported workflow is the prebuilt LLVM tree via LLVM_INSTALL_PATH.
This simplifies the user setup and contracts the support surface.

Fixes google#3
@adi-IL
adi-IL force-pushed the docs/retire-bazel-llvm-install branch from 91a00dd to 2aa4b19 Compare August 25, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider retiring the "Build with Bazel provided LLVM installation" instructions

1 participant