blob: 80c9c38174851c8e493e7768c685b39fc25fe65d [file] [log] [blame]
Googlercab94982019-06-06 11:18:26 +02001# Standard cpu name constraint_setting and constraint_values
2licenses(["notice"])
3
4package(
5 default_visibility = ["//visibility:public"],
6)
7
8filegroup(
9 name = "srcs",
10 srcs = glob(["**"]),
11)
12
Googler5f138692019-06-18 11:15:05 -070013# To add a new constraint_value see https://github.com/bazelbuild/platforms.
Googlercab94982019-06-06 11:18:26 +020014constraint_setting(name = "cpu")
15
Googler6ad3cff2019-08-05 09:40:46 -070016# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
Googlercab94982019-06-06 11:18:26 +020017constraint_value(
Googler6ad3cff2019-08-05 09:40:46 -070018 name = "aarch64",
19 constraint_setting = ":cpu",
20)
21
22# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
23constraint_value(
24 name = "arm",
Googlercab94982019-06-06 11:18:26 +020025 constraint_setting = ":cpu",
26)
27
28constraint_value(
Googler6ad3cff2019-08-05 09:40:46 -070029 name = "arm64_32",
30 constraint_setting = ":cpu",
31)
32
33constraint_value(
34 name = "arm64",
35 constraint_setting = ":cpu",
36)
37
38constraint_value(
39 name = "arm64e",
40 constraint_setting = ":cpu",
41)
42
43constraint_value(
44 name = "armv7",
45 constraint_setting = ":cpu",
46)
47
48constraint_value(
49 name = "armv7k",
50 constraint_setting = ":cpu",
51)
52
53constraint_value(
54 name = "i386",
Googlere50397c2019-07-30 12:29:49 -070055 constraint_setting = ":cpu",
56)
57
58constraint_value(
59 name = "ppc",
Googlercab94982019-06-06 11:18:26 +020060 constraint_setting = ":cpu",
61)
62
63constraint_value(
64 name = "s390x",
65 constraint_setting = ":cpu",
66)
Googler6ad3cff2019-08-05 09:40:46 -070067
68constraint_value(
69 name = "x86_32",
70 constraint_setting = ":cpu",
71)
72
73constraint_value(
74 name = "x86_64",
75 constraint_setting = ":cpu",
76)