aboutsummaryrefslogtreecommitdiff
path: root/platforms/arch/BUILD
blob: cc458d0ecc44b9e216f24169a5c47b9a39625e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Standard cpu name constraint_setting and constraint_values

licenses(["notice"])

package(
    default_visibility = ["//visibility:public"],
)

constraint_value(
    name = "arm",
    constraint_setting = "@platforms//cpu:cpu",
)

constraint_value(
    name = "arm64",
    constraint_setting = "@platforms//cpu:cpu",
)

constraint_value(
    name = "riscv64",
    constraint_setting = "@platforms//cpu:cpu",
)

constraint_value(
    name = "x86",
    constraint_setting = "@platforms//cpu:cpu",
)

# Alias to the local_jdk's toolchain constraint to make local_jdk resolve
# correctly with --tool_java_runtime_version=local_jdk and the checked-in JDK.
alias(
    name = "x86_64",
    actual = "@platforms//cpu:x86_64",
)

constraint_setting(
    name = "secondary_arch_constraint",
)

constraint_value(
    name = "secondary_arm",
    constraint_setting = ":secondary_arch_constraint",
)

constraint_value(
    name = "secondary_arm64",
    constraint_setting = ":secondary_arch_constraint",
)

constraint_value(
    name = "secondary_riscv64",
    constraint_setting = ":secondary_arch_constraint",
)

constraint_value(
    name = "secondary_x86",
    constraint_setting = ":secondary_arch_constraint",
)

constraint_value(
    name = "secondary_x86_64",
    constraint_setting = ":secondary_arch_constraint",
)