1# 2# Copyright 2017 The Abseil Authors. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# https://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17load("@bazel_skylib//lib:selects.bzl", "selects") 18 19package(default_visibility = ["//visibility:public"]) 20 21licenses(["notice"]) 22 23config_setting( 24 name = "clang_compiler", 25 flag_values = { 26 "@bazel_tools//tools/cpp:compiler": "clang", 27 }, 28 visibility = [":__subpackages__"], 29) 30 31config_setting( 32 name = "mingw_unspecified_compiler", 33 flag_values = { 34 "@bazel_tools//tools/cpp:compiler": "mingw", 35 }, 36 visibility = [":__subpackages__"], 37) 38 39config_setting( 40 name = "mingw-gcc_compiler", 41 flag_values = { 42 "@bazel_tools//tools/cpp:compiler": "mingw-gcc", 43 }, 44 visibility = [":__subpackages__"], 45) 46 47config_setting( 48 name = "fuchsia", 49 constraint_values = [ 50 "@platforms//os:fuchsia", 51 ], 52 visibility = [":__subpackages__"], 53) 54 55selects.config_setting_group( 56 name = "mingw_compiler", 57 match_any = [ 58 ":mingw_unspecified_compiler", 59 ":mingw-gcc_compiler", 60 ], 61 visibility = [":__subpackages__"], 62) 63