1# Copyright 2024 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://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, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load("@rules_cc//cc/toolchains:feature.bzl", "cc_feature") 16 17package(default_visibility = ["//visibility:public"]) 18 19# All of the toolchain features enumerated in this build file are sentinel 20# features. By nature, they do not provide any flags. Instead, these features 21# are used to guide other behaviors throughout a toolchain. 22 23cc_feature( 24 name = "compiler_is_clang", 25 feature_name = "compiler_is_clang", 26) 27 28cc_feature( 29 name = "compiler_is_gcc", 30 feature_name = "compiler_is_gcc", 31) 32 33cc_feature( 34 name = "linker_is_clang", 35 feature_name = "linker_is_clang", 36) 37 38cc_feature( 39 name = "linker_is_gcc", 40 feature_name = "linker_is_gcc", 41) 42