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 16package(default_visibility = ["//visibility:public"]) 17 18licenses(["notice"]) 19 20config_setting( 21 name = "clang_compiler", 22 flag_values = { 23 "@bazel_tools//tools/cpp:compiler": "clang", 24 }, 25 visibility = [":__subpackages__"], 26) 27 28config_setting( 29 name = "msvc_compiler", 30 flag_values = { 31 "@bazel_tools//tools/cpp:compiler": "msvc-cl", 32 }, 33 visibility = [":__subpackages__"], 34) 35 36config_setting( 37 name = "clang-cl_compiler", 38 flag_values = { 39 "@bazel_tools//tools/cpp:compiler": "clang-cl", 40 }, 41 visibility = [":__subpackages__"], 42) 43 44config_setting( 45 name = "osx", 46 constraint_values = [ 47 "@platforms//os:osx", 48 ], 49) 50 51config_setting( 52 name = "ios", 53 constraint_values = [ 54 "@platforms//os:ios", 55 ], 56) 57 58config_setting( 59 name = "ppc", 60 values = { 61 "cpu": "ppc", 62 }, 63 visibility = [":__subpackages__"], 64) 65 66config_setting( 67 name = "wasm", 68 values = { 69 "cpu": "wasm32", 70 }, 71 visibility = [":__subpackages__"], 72) 73 74config_setting( 75 name = "fuchsia", 76 values = { 77 "cpu": "fuchsia", 78 }, 79 visibility = [":__subpackages__"], 80) 81