Bazel: fix build with Bazel 1.1.

Change-Id: I19aa6e4ee032cb0ca652b2f615af23f71b44424a
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Reviewed-on: https://nginx-review.googlesource.com/c/nginx/+/3642
Reviewed-by: Daniel Berkovitch <dbrk@google.com>
diff --git a/.bazelrc b/.bazelrc
index eee8bcb..a477192 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,2 +1,5 @@
 # Use Python 2.x to workaround a bug in pkg_deb().
 build --host_force_python=PY2
+
+# Use CC/CXX instead of Xcode on macOS, since it doesn't work with genrule().
+build --action_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1