Skip to content

bazel: make toolchains_llvm a dev_dependency#10110

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:toolchains-llvm-dev-dep
Apr 11, 2026
Merged

bazel: make toolchains_llvm a dev_dependency#10110
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:toolchains-llvm-dev-dep

Conversation

@oharboe

@oharboe oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

The bazel_dep was non-dev, forcing downstream Bazel consumers to inherit OpenROAD's pinned LLVM toolchain. This conflicts when consumers configure their own C++ toolchain.

The extension and toolchain registration were already dev_dependency. Making the bazel_dep dev_dependency too keeps it consistent and invisible to downstream modules. The llvm_prebuilt build_file reference works because dev deps are still resolved for the declaring module's own build.

The bazel_dep was non-dev, forcing downstream Bazel consumers to
inherit OpenROAD's pinned LLVM toolchain. This conflicts when
consumers configure their own C++ toolchain.

The extension and toolchain registration were already dev_dependency.
Making the bazel_dep dev_dependency too keeps it consistent and
invisible to downstream modules. The llvm_prebuilt build_file
reference works because dev deps are still resolved for the
declaring module's own build.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe oharboe requested a review from maliberty April 11, 2026 14:19
@oharboe

oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator Author

@hzeller Thoughts?

@maliberty maliberty enabled auto-merge April 11, 2026 14:20
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@hzeller

hzeller commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

Looks good.
(also, in the meantime, there is version 1.7.0, would that be something to consider ?)

@oharboe

oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty ugh. module.bazel.lock needs update. Can you fix it? It's going to conflict with some PR going in before this one if I do it.

@hzeller can't even do that reliably locally... I understood.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the toolchains_llvm dependency in MODULE.bazel to be a dev_dependency and removes the associated explanatory comments. I have no feedback to provide as there are no review comments.

@maliberty maliberty merged commit 66c2b5e into The-OpenROAD-Project:master Apr 11, 2026
15 of 17 checks passed
@oharboe oharboe deleted the toolchains-llvm-dev-dep branch April 22, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants