From 7ba0563f0b1ecf26bd6205c057c6093921be7bbc Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Wed, 31 Aug 2016 17:38:31 +0200 Subject: [PATCH] Correctly set the C++ crosstool files as input dependency to the rust compile action Without that, the C++ wrapper doesn't get shiped in the OS X Sandbox. --- rust/rust.bzl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rust/rust.bzl b/rust/rust.bzl index 286fecd4be..6b3b4292ff 100644 --- a/rust/rust.bzl +++ b/rust/rust.bzl @@ -300,7 +300,8 @@ def _rust_library_impl(ctx): depinfo.transitive_libs + [ctx.file._rustc] + ctx.files._rustc_lib + - ctx.files._rustlib) + ctx.files._rustlib + + ctx.files._crosstool) ctx.action( inputs = compile_inputs, @@ -617,8 +618,8 @@ _rust_toolchain_attrs = { executable = True, single_file = True, ), - "_cc_wrapper": attr.label( - default = Label("@local_config_cc//:cc_wrapper") + "_crosstool": attr.label( + default = Label("//tools/defaults:crosstool") ), }