From a67df00832d04e98f880ec6fe86ad0050cb7f030 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Mon, 25 Jul 2016 15:05:57 -0400 Subject: [PATCH] Add a dependency on the cc_wrapper, so it's present when rust_binary is executed Otherwise, the local_config_cc isn't written to the execroot on OS X because it isn't a dependency of the build rule. Fixes https://github.com/bazelbuild/bazel/issues/1556. --- rust/rust.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/rust.bzl b/rust/rust.bzl index a9b82ed231..286fecd4be 100644 --- a/rust/rust.bzl +++ b/rust/rust.bzl @@ -617,6 +617,9 @@ _rust_toolchain_attrs = { executable = True, single_file = True, ), + "_cc_wrapper": attr.label( + default = Label("@local_config_cc//:cc_wrapper") + ), } _rust_library_attrs = _rust_common_attrs + {