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