2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-28 21:33:48 +00:00
bazel-lib/platforms/BUILD.bazel

39 lines
920 B
Python
Raw Normal View History

load("//platforms/config:defs.bzl", "platforms")
[platform(
name = "{}_{}".format(
p.os,
p.cpu,
),
constraint_values = [
"@platforms//os:{}".format(p.os),
"@platforms//cpu:{}".format(p.cpu),
],
visibility = ["//visibility:public"],
) for p in platforms]
alias(
name = "linux_amd64",
actual = ":linux_x86_64",
visibility = ["//visibility:public"],
)
alias(
name = "linux_arm64",
actual = ":linux_aarch64",
visibility = ["//visibility:public"],
)
platform(
name = "x86_64_linux_remote",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
exec_properties = {
"OSFamily": "Linux",
"container-image": "docker://public.ecr.aws/docker/library/python@sha256:247105bbbe7f7afc7c12ac893be65b5a32951c1d0276392dc2bf09861ba288a6",
},
visibility = ["//visibility:public"],
)