xref: /aosp_15_r20/external/bazelbuild-rules_cc/cc/private/toolchain/BUILD.empty (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
1# Copyright 2018 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#    http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
16
17package(default_visibility = ["//visibility:public"])
18
19load(":cc_toolchain_config.bzl", "cc_toolchain_config")
20
21cc_library(
22    name = "malloc",
23)
24
25filegroup(
26    name = "empty",
27    srcs = [],
28)
29
30cc_toolchain_suite(
31    name = "toolchain",
32    toolchains = {
33        "local": ":local",
34        "local|local": ":local",
35    },
36)
37
38cc_toolchain(
39    name = "local",
40    all_files = ":empty",
41    ar_files = ":empty",
42    as_files = ":empty",
43    compiler_files = ":empty",
44    dwp_files = ":empty",
45    linker_files = ":empty",
46    objcopy_files = ":empty",
47    strip_files = ":empty",
48    toolchain_config = ":local_config",
49    toolchain_identifier = "local",
50)
51
52cc_toolchain_config(name = "local_config")
53