• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "osx",
30    constraint_values = [
31        "@bazel_tools//platforms:osx",
32    ],
33)
34
35config_setting(
36    name = "ios",
37    constraint_values = [
38        "@bazel_tools//platforms:ios",
39    ],
40)
41
42config_setting(
43    name = "windows",
44    constraint_values = [
45        "@bazel_tools//platforms:x86_64",
46        "@bazel_tools//platforms:windows",
47    ],
48    visibility = [":__subpackages__"],
49)
50
51config_setting(
52    name = "ppc",
53    values = {
54        "cpu": "ppc",
55    },
56    visibility = [":__subpackages__"],
57)
58
59config_setting(
60    name = "wasm",
61    values = {
62        "cpu": "wasm32",
63    },
64    visibility = [":__subpackages__"],
65)
66