[bazel] Guard usage of repo_metadata (#204302)

Older Bazel versions don't have this attribute yet.
This commit is contained in:
Adrian Kuegel authored and GitHub committed 2026-06-17 09:28:48 +02:00
1 parent 3746f3e4d6
commit caab002484
1 file changed
+2 -1
+2 -1
View File
@@ -198,7 +198,8 @@ def _llvm_configure_impl(repository_ctx):
executable = False,
)
return repository_ctx.repo_metadata(reproducible = True)
if hasattr(repository_ctx, "repo_metadata"):
return repository_ctx.repo_metadata(reproducible = True)
llvm_configure = repository_rule(
implementation = _llvm_configure_impl,