• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Standard cpu name constraint_setting and constraint_values
2
3licenses(["notice"])
4
5package(
6    default_visibility = ["//visibility:public"],
7)
8
9constraint_value(
10    name = "arm",
11    constraint_setting = "@platforms//cpu:cpu",
12)
13
14constraint_value(
15    name = "arm64",
16    constraint_setting = "@platforms//cpu:cpu",
17)
18
19constraint_value(
20    name = "x86",
21    constraint_setting = "@platforms//cpu:cpu",
22)
23
24# Alias to the local_jdk's toolchain constraint to make local_jdk resolve
25# correctly with --tool_java_runtime_version=local_jdk and the checked-in JDK.
26alias(
27    name = "x86_64",
28    actual = "@platforms//cpu:x86_64"
29)
30