From 9e4b7622039f8d17cb479815a7442acde52cf01d Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 24 Oct 2018 16:48:41 +0200 Subject: [PATCH] Add suggested alias for bazelrc import location See https://github.com/bazelbuild/bazel/issues/6319 --- .bazelrc | 3 +++ tools/bazel.rc | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 .bazelrc diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 00000000000..bc31c54e94f --- /dev/null +++ b/.bazelrc @@ -0,0 +1,3 @@ +# load bazelrc from the legacy location +# as recommended in https://github.com/bazelbuild/bazel/issues/6319 +import %workspace%/tools/bazel.rc diff --git a/tools/bazel.rc b/tools/bazel.rc index 5b107210c65..bfdbc0cacb9 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -1,3 +1,8 @@ +# bazelrc file +# bazel >= 0.18 looks for %workspace%/.bazelrc (which redirects here) +# Older bazel versions look for %workspace%/tools/bazel.rc (this file) +# See https://github.com/bazelbuild/bazel/issues/6319 + build --client_env=CC=clang build --copt=-DGRPC_BAZEL_BUILD