1load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2load("//examples/write_cc_toolchain_cpu:write_cc_toolchain_cpu.bzl", "write_cc_toolchain_cpu") 3 4# Copyright 2019 The Bazel Authors. All rights reserved. 5# 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17 18# Example showing how to get CcToolchainInfo in a custom starlark rule 19licenses(["notice"]) 20 21write_cc_toolchain_cpu(name = "write_me_the_cpu") 22 23bzl_library( 24 name = "write_cc_toolchain_cpu_bzl", 25 srcs = ["write_cc_toolchain_cpu.bzl"], 26 visibility = ["//visibility:private"], 27) 28