Brian Silverman | 7d89e28 | 2021-11-17 17:36:54 -0800 | [diff] [blame^] | 1 | # Copyright 2020 The Bazel Authors. |
| 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 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 16 | |
| 17 | def bazel_toolchain_dependencies(): |
| 18 | # Load rules_cc if the user has not defined them. |
| 19 | if not native.existing_rule("rules_cc"): |
| 20 | http_archive( |
| 21 | name = "rules_cc", |
| 22 | sha256 = "b6f34b3261ec02f85dbc5a8bdc9414ce548e1f5f67e000d7069571799cb88b25", |
| 23 | strip_prefix = "rules_cc-726dd8157557f1456b3656e26ab21a1646653405", |
| 24 | urls = ["https://github.com/bazelbuild/rules_cc/archive/726dd8157557f1456b3656e26ab21a1646653405.tar.gz"], |
| 25 | ) |