Add xcode_configure in cc_configure module extension

This is needed by cc toolchain on macOS.

PiperOrigin-RevId: 435328319
Change-Id: I505b18d6058daf2cbb479f454f299b7b4a92bd84
diff --git a/cc/extensions.bzl b/cc/extensions.bzl
index 027036f..72b2dca 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(_):
     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)