[bazel] Guard usage of repo_metadata (#204302)
Older Bazel versions don't have this attribute yet.
This commit is contained in:
1 parent
3746f3e4d6
commit
caab002484
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user