• 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#
16
17load(
18    ":compiler_config_setting.bzl",
19    "create_llvm_config",
20)
21
22package(default_visibility = ["//visibility:public"])
23
24licenses(["notice"])
25
26create_llvm_config(
27    name = "llvm_compiler",
28    visibility = [":__subpackages__"],
29)
30
31config_setting(
32    name = "osx",
33    constraint_values = [
34        "@bazel_tools//platforms:osx",
35    ],
36)
37
38config_setting(
39    name = "ios",
40    constraint_values = [
41        "@bazel_tools//platforms:ios",
42    ],
43)
44
45config_setting(
46    name = "windows",
47    constraint_values = [
48        "@bazel_tools//platforms:x86_64",
49        "@bazel_tools//platforms:windows",
50    ],
51    visibility = [":__subpackages__"],
52)
53
54config_setting(
55    name = "ppc",
56    values = {
57        "cpu": "ppc",
58    },
59    visibility = [":__subpackages__"],
60)
61
62config_setting(
63    name = "wasm",
64    values = {
65        "cpu": "wasm32",
66    },
67    visibility = [":__subpackages__"],
68)
69