64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
# 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",
|
|
)
|