xref: /aosp_15_r20/external/bazelbuild-rules_cc/cc/toolchain_utils.bzl (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
1*eed53cd4SHONG Yifan# pylint: disable=g-bad-file-header
2*eed53cd4SHONG Yifan# Copyright 2016 The Bazel Authors. All rights reserved.
3*eed53cd4SHONG Yifan#
4*eed53cd4SHONG Yifan# Licensed under the Apache License, Version 2.0 (the "License");
5*eed53cd4SHONG Yifan# you may not use this file except in compliance with the License.
6*eed53cd4SHONG Yifan# You may obtain a copy of the License at
7*eed53cd4SHONG Yifan#
8*eed53cd4SHONG Yifan#    http://www.apache.org/licenses/LICENSE-2.0
9*eed53cd4SHONG Yifan#
10*eed53cd4SHONG Yifan# Unless required by applicable law or agreed to in writing, software
11*eed53cd4SHONG Yifan# distributed under the License is distributed on an "AS IS" BASIS,
12*eed53cd4SHONG Yifan# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*eed53cd4SHONG Yifan# See the License for the specific language governing permissions and
14*eed53cd4SHONG Yifan# limitations under the License.
15*eed53cd4SHONG Yifan
16*eed53cd4SHONG Yifan"""
17*eed53cd4SHONG YifanDeprecated, use find_cc_toolchain.bzl
18*eed53cd4SHONG Yifan"""
19*eed53cd4SHONG Yifan
20*eed53cd4SHONG Yifanload(":find_cc_toolchain.bzl", "find_cc_toolchain")
21*eed53cd4SHONG Yifan
22*eed53cd4SHONG Yifandef find_cpp_toolchain(ctx):
23*eed53cd4SHONG Yifan    """Deprecated, use `find_cc_toolchain` instead.
24*eed53cd4SHONG Yifan
25*eed53cd4SHONG Yifan    Args:
26*eed53cd4SHONG Yifan      ctx: See `find_cc_toolchain`.
27*eed53cd4SHONG Yifan
28*eed53cd4SHONG Yifan    Returns:
29*eed53cd4SHONG Yifan      A CcToolchainInfo.
30*eed53cd4SHONG Yifan    """
31*eed53cd4SHONG Yifan    return find_cc_toolchain(ctx)
32