Skip to content

Commit

Permalink
Update examples to use an exec transition instead of host. (bazelbuil…
Browse files Browse the repository at this point in the history
…d#183)

Part of improving configurability documentation,
bazelbuild/bazel#11967.
  • Loading branch information
katre authored Aug 21, 2020
1 parent e5d7782 commit b29794f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rules/actions_run/execute.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concat = rule(
"out": attr.output(mandatory = True),
"merge_tool": attr.label(
executable = True,
cfg = "host",
cfg = "exec",
allow_files = True,
default = Label("//actions_run:merge"),
),
Expand Down
2 changes: 1 addition & 1 deletion rules/computed_dependencies/hash.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ md5_sum = rule(
attrs = {
"filter": attr.string(values = _filters.keys(), default = "none"),
"src": attr.label(mandatory = True, allow_single_file = True),
"_filter_bin": attr.label(default = _get_filter, executable = True, cfg = "host"),
"_filter_bin": attr.label(default = _get_filter, executable = True, cfg = "exec"),
},
outputs = {"text": "%{name}.txt"},
)
2 changes: 1 addition & 1 deletion rules/depsets/foo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ foo_binary = rule(
default = Label("//depsets:foocc"),
allow_files = True,
executable = True,
cfg = "host",
cfg = "exec",
),
},
outputs = {"out": "%{name}.out"},
Expand Down
2 changes: 1 addition & 1 deletion rules/runfiles/tool.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ def _tool_user_impl(ctx):
tool_user = rule(
implementation = _tool_user_impl,
attrs = {
"tool": attr.label(mandatory = True, executable = True, cfg = "host"),
"tool": attr.label(mandatory = True, executable = True, cfg = "exec"),
},
)

0 comments on commit b29794f

Please sign in to comment.