Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion host/extension.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ HOST_CONSTRAINTS = [
%s%s]
""" % (cpu, os))

if hasattr(rctx, "repo_metadata"):
return rctx.repo_metadata(reproducible = True)
return None

host_platform_repo = repository_rule(
implementation = _host_platform_repo_impl,
doc = """Generates constraints for the host platform. The constraints.bzl
Expand All @@ -76,4 +80,3 @@ host_platform = module_extension(
doc = """Generates a <code>host_platform_repo</code> repo named
<code>host_platform</code>, containing constraints for the host platform.""",
)