aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-12-05 13:04:15 -0800
committerDavid Tolnay <dtolnay@gmail.com>2022-12-05 13:04:15 -0800
commit2d337cc4d6052546b774e67dae6b065d859e40d3 (patch)
tree24a8a565bfcda843ca3cb69564389c8ce3d203fe
parent8bf38e39d6464c7115c4892c4ec3aab562693b91 (diff)
downloadcxx-2d337cc4d6052546b774e67dae6b065d859e40d3.tar.gz
Wire up a buck2 failure_filter
-rw-r--r--tools/buck/toolchains/toolchain.bzl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buck/toolchains/toolchain.bzl b/tools/buck/toolchains/toolchain.bzl
index c94a0e9c..8f38e50b 100644
--- a/tools/buck/toolchains/toolchain.bzl
+++ b/tools/buck/toolchains/toolchain.bzl
@@ -84,6 +84,8 @@ def _rust_toolchain(ctx):
RustToolchainInfo(
clippy_driver = "clippy-driver",
compiler = "rustc",
+ failure_filter = False,
+ failure_filter_action = ctx.attrs.failure_filter_action[RunInfo],
rustc_action = ctx.attrs.rustc_action[RunInfo],
rustc_flags = ["-Clink-arg=-fuse-ld=lld"],
rustc_target_triple = "x86_64-unknown-linux-gnu",
@@ -97,6 +99,7 @@ def _rust_toolchain(ctx):
rust_toolchain = rule(
impl = _rust_toolchain,
attrs = {
+ "failure_filter_action": attrs.dep(providers = [RunInfo], default = "prelude//rust/tools:failure_filter_action"),
"rustc_action": attrs.dep(providers = [RunInfo], default = "prelude//rust/tools:rustc_action"),
},
is_toolchain_rule = True,