Skip to content

Commit

Permalink
Also include xcode_configure in cc_configure module extension
Browse files Browse the repository at this point in the history
This is needed for cc toolchain on macOS.
  • Loading branch information
meteorcloudy committed Nov 10, 2021
1 parent 22532c5 commit 4a31bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cc/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
"""Module extension for cc auto configuration."""

load("//cc/private/toolchain:cc_configure.bzl", "cc_autoconf", "cc_autoconf_toolchains")
load("@bazel_tools//tools/osx:xcode_configure.bzl", "xcode_configure")

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)

0 comments on commit 4a31bc1

Please sign in to comment.