From 46b91790aaa2a2bf3872823f004ae14c790a62a2 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 10 Nov 2021 12:20:25 +0100 Subject: [PATCH] Also include xcode_configure in cc_configure module extension This is needed for cc toolchain on macOS. --- cc/extensions.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cc/extensions.bzl b/cc/extensions.bzl index dba2e2a9..7b34cec6 100644 --- a/cc/extensions.bzl +++ b/cc/extensions.bzl @@ -13,10 +13,12 @@ # limitations under the License. """Module extension for cc auto configuration.""" +load("@bazel_tools//tools/osx:xcode_configure.bzl", "xcode_configure") load("//cc/private/toolchain:cc_configure.bzl", "cc_autoconf", "cc_autoconf_toolchains") def _cc_configure_impl(ctx): cc_autoconf_toolchains(name = "local_config_cc_toolchains") cc_autoconf(name = "local_config_cc") + xcode_configure("@bazel_tools//tools/osx:xcode_locator.m") cc_configure = module_extension(implementation = _cc_configure_impl)