File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module(
1919 compatibility_level = 0 ,
2020)
2121
22+ bazel_dep (name = "bazel_features" , version = "1.36.0" )
2223bazel_dep (name = "bazel_skylib" , version = "1.5.0" )
2324bazel_dep (name = "rules_cc" , version = "0.2.2" )
2425bazel_dep (name = "platforms" , version = "0.0.8" )
Original file line number Diff line number Diff line change 11"""LLVM extension for use with bzlmod"""
22
3+ load ("@bazel_features//:features.bzl" , "bazel_features" )
34load ("@toolchains_llvm//toolchain:rules.bzl" , "llvm_toolchain" )
45load (
56 "@toolchains_llvm//toolchain/internal:repo.bzl" ,
@@ -84,6 +85,11 @@ def _llvm_impl_(module_ctx):
8485 if root .name not in toolchain_names :
8586 fail ("sysroot '%s' does not have a corresponding toolchain" % root .name )
8687
88+ if bazel_features .external_deps .extension_metadata_has_reproducible :
89+ return module_ctx .extension_metadata (reproducible = True )
90+ else :
91+ return None
92+
8793_attrs = {
8894 "name" : attr .string (doc = """\
8995 Base name for the generated repositories, allowing more than one LLVM toolchain to be registered.
You can’t perform that action at this time.
0 commit comments