1*eed53cd4SHONG Yifan# Copyright 2018 The Bazel Authors. All rights reserved. 2*eed53cd4SHONG Yifan# 3*eed53cd4SHONG Yifan# Licensed under the Apache License, Version 2.0 (the "License"); 4*eed53cd4SHONG Yifan# you may not use this file except in compliance with the License. 5*eed53cd4SHONG Yifan# You may obtain a copy of the License at 6*eed53cd4SHONG Yifan# 7*eed53cd4SHONG Yifan# http://www.apache.org/licenses/LICENSE-2.0 8*eed53cd4SHONG Yifan# 9*eed53cd4SHONG Yifan# Unless required by applicable law or agreed to in writing, software 10*eed53cd4SHONG Yifan# distributed under the License is distributed on an "AS IS" BASIS, 11*eed53cd4SHONG Yifan# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*eed53cd4SHONG Yifan# See the License for the specific language governing permissions and 13*eed53cd4SHONG Yifan# limitations under the License. 14*eed53cd4SHONG Yifan"""Module extension for cc auto configuration.""" 15*eed53cd4SHONG Yifan 16*eed53cd4SHONG Yifanload("@bazel_tools//tools/osx:xcode_configure.bzl", "xcode_configure") 17*eed53cd4SHONG Yifanload("//cc/private/toolchain:cc_configure.bzl", "cc_autoconf", "cc_autoconf_toolchains") 18*eed53cd4SHONG Yifan 19*eed53cd4SHONG Yifandef _cc_configure_impl(_): 20*eed53cd4SHONG Yifan cc_autoconf_toolchains(name = "local_config_cc_toolchains") 21*eed53cd4SHONG Yifan cc_autoconf(name = "local_config_cc") 22*eed53cd4SHONG Yifan xcode_configure("@bazel_tools//tools/osx:xcode_locator.m") 23*eed53cd4SHONG Yifan 24*eed53cd4SHONG Yifancc_configure = module_extension(implementation = _cc_configure_impl) 25