hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 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 | |
| 15 | package(default_visibility = ["//visibility:public"]) |
| 16 | |
rosica | 71bc38f | 2019-02-04 02:39:30 -0800 | [diff] [blame] | 17 | load("@bazel_tools//tools/cpp:cc_toolchain_config.bzl", "cc_toolchain_config") |
| 18 | |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 19 | cc_library( |
| 20 | name = "malloc", |
| 21 | ) |
| 22 | |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 23 | filegroup( |
| 24 | name = "empty", |
| 25 | srcs = [], |
| 26 | ) |
| 27 | |
| 28 | cc_toolchain_suite( |
| 29 | name = "toolchain", |
| 30 | toolchains = { |
| 31 | "local|local": ":local", |
rosica | 547bf42 | 2018-09-06 02:10:02 -0700 | [diff] [blame] | 32 | "local": ":local", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 33 | }, |
| 34 | ) |
| 35 | |
| 36 | cc_toolchain( |
| 37 | name = "local", |
hlopko | c3fb1db | 2018-10-09 20:40:58 -0700 | [diff] [blame] | 38 | toolchain_identifier = "local", |
rosica | 71bc38f | 2019-02-04 02:39:30 -0800 | [diff] [blame] | 39 | toolchain_config = ":local_config", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 40 | all_files = ":empty", |
Googler | 28953cb | 2018-12-05 10:46:00 -0800 | [diff] [blame] | 41 | ar_files = ":empty", |
| 42 | as_files = ":empty", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 43 | compiler_files = ":empty", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 44 | dwp_files = ":empty", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 45 | linker_files = ":empty", |
| 46 | objcopy_files = ":empty", |
hlopko | 57bc201 | 2018-05-16 02:15:04 -0700 | [diff] [blame] | 47 | strip_files = ":empty", |
| 48 | ) |
rosica | 71bc38f | 2019-02-04 02:39:30 -0800 | [diff] [blame] | 49 | |
| 50 | cc_toolchain_config( |
| 51 | name = "local_config", |
| 52 | cpu = "local", |
| 53 | compiler = "compiler", |
| 54 | ) |