Skip to content

Commit

Permalink
Switching "host" configurations to "exec" (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Oct 16, 2020
1 parent 9a8ef69 commit 0af0f7a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions bindgen/bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -197,27 +197,27 @@ rust_bindgen_toolchain = rule(
"bindgen": attr.label(
doc = "The label of a `bindgen` executable.",
executable = True,
cfg = "host",
cfg = "exec",
),
"rustfmt": attr.label(
doc = "The label of a `rustfmt` executable. If this is provided, generated sources will be formatted.",
executable = True,
cfg = "host",
cfg = "exec",
mandatory = False,
),
"clang": attr.label(
doc = "The label of a `clang` executable.",
executable = True,
cfg = "host",
cfg = "exec",
),
"libclang": attr.label(
doc = "A cc_library that provides bindgen's runtime dependency on libclang.",
cfg = "host",
cfg = "exec",
providers = [CcInfo],
),
"libstdcxx": attr.label(
doc = "A cc_library that satisfies libclang's libstdc++ dependency.",
cfg = "host",
cfg = "exec",
providers = [CcInfo],
),
},
Expand Down
4 changes: 2 additions & 2 deletions cargo/cargo_build_script.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ _build_script_run = rule(
executable = True,
allow_files = True,
mandatory = True,
cfg = "host",
cfg = "exec",
),
"crate_name": attr.string(
doc = "Name of the crate associated with this build script target",
Expand All @@ -171,7 +171,7 @@ _build_script_run = rule(
executable = True,
allow_files = True,
default = Label("//cargo/cargo_build_script_runner:cargo_build_script_runner"),
cfg = "host",
cfg = "exec",
),
},
fragments = ["cpp"],
Expand Down
4 changes: 2 additions & 2 deletions proto/proto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ rust_proto_library = rule(
),
"_optional_output_wrapper": attr.label(
executable = True,
cfg = "host",
cfg = "exec",
default = Label(
"@io_bazel_rules_rust//proto:optional_output_wrapper",
),
Expand Down Expand Up @@ -372,7 +372,7 @@ rust_grpc_library = rule(
),
"_optional_output_wrapper": attr.label(
executable = True,
cfg = "host",
cfg = "exec",
default = Label(
"@io_bazel_rules_rust//proto:optional_output_wrapper",
),
Expand Down
6 changes: 3 additions & 3 deletions proto/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,21 @@ rust_proto_toolchain = rule(
"protoc": attr.label(
doc = "The location of the `protoc` binary. It should be an executable target.",
executable = True,
cfg = "host",
cfg = "exec",
default = Label("@com_google_protobuf//:protoc"),
),
"proto_plugin": attr.label(
doc = "The location of the Rust protobuf compiler plugin used to generate rust sources.",
allow_single_file = True,
cfg = "host",
cfg = "exec",
default = Label(
"@io_bazel_rules_rust//proto:protoc_gen_rust",
),
),
"grpc_plugin": attr.label(
doc = "The location of the Rust protobuf compiler plugin to generate rust gRPC stubs.",
allow_single_file = True,
cfg = "host",
cfg = "exec",
default = Label(
"@io_bazel_rules_rust//proto:protoc_gen_rust_grpc",
),
Expand Down
2 changes: 1 addition & 1 deletion wasm_bindgen/wasm_bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ rust_wasm_bindgen_toolchain = rule(
"bindgen": attr.label(
doc = "The label of a `bindgen` executable.",
executable = True,
cfg = "host",
cfg = "exec",
),
},
)

0 comments on commit 0af0f7a

Please sign in to comment.