aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2019-06-09 14:41:13 -0700
committerMarco Poletti <poletti.marco@gmail.com>2019-06-09 14:41:13 -0700
commitb8d0230f7d66f02a4a9a7e0a57f5233b623fa7bf (patch)
treed980927e1b3e7ae47811a64ca2053f1e8dc3f98a
parent128baf7421ff7f2e3f0559a7bf840ac7d0ef5b20 (diff)
downloadgoogle-fruit-b8d0230f7d66f02a4a9a7e0a57f5233b623fa7bf.tar.gz
Set a 'toolchains' param in a BUILD rule. This is needed for the code to compile with the latest version of bazel.
-rw-r--r--tests/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/BUILD b/tests/BUILD
index fa6349f..448d757 100644
--- a/tests/BUILD
+++ b/tests/BUILD
@@ -55,6 +55,7 @@ genrule(
"fruit_test_config.py",
"libfruit.so"
],
+ toolchains = ["@bazel_tools//tools/cpp:cc_flags"],
visibility = ["//third_party/fruit/tests:__subpackages__"],
cmd = ""
+ "FRUIT_HEADERS_LOCATION=`for f in $(locations //third_party/fruit:fruit_headers); do echo \"$$f\"; done | fgrep configuration/bazel/ | head -n 1 | sed 's|configuration/bazel/.*|./|'`;"