mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Bazel 8 no longer supports legacy toolchains, so all of our release toolchains have been updated to use platforms. #test-continuous PiperOrigin-RevId: 870017275
48 lines
1 KiB
Python
48 lines
1 KiB
Python
"""Stores a map of platforms sets we support and their corresponding constraints."""
|
|
|
|
visibility([
|
|
"//toolchain",
|
|
])
|
|
|
|
PLATFORMS = {
|
|
"osx-x86_64": [
|
|
"@platforms//cpu:x86_64",
|
|
"@platforms//os:osx",
|
|
],
|
|
"osx-aarch_64": [
|
|
"@platforms//cpu:aarch64",
|
|
"@platforms//os:osx",
|
|
],
|
|
"linux-aarch_64": [
|
|
"@platforms//cpu:aarch64",
|
|
"@platforms//os:linux",
|
|
],
|
|
"linux-ppcle_64": [
|
|
"@platforms//cpu:ppc64le",
|
|
"@platforms//os:linux",
|
|
],
|
|
"linux-s390_64": [
|
|
"@platforms//cpu:s390x",
|
|
"@platforms//os:linux",
|
|
],
|
|
"linux-x86_32": [
|
|
"@platforms//cpu:x86_32",
|
|
"@platforms//os:linux",
|
|
],
|
|
"linux-x86_64": [
|
|
"@platforms//cpu:x86_64",
|
|
"@platforms//os:linux",
|
|
],
|
|
"win32": [
|
|
"@platforms//cpu:x86_32",
|
|
"@platforms//os:windows",
|
|
],
|
|
"win64": [
|
|
"@platforms//cpu:x86_64",
|
|
"@platforms//os:windows",
|
|
],
|
|
"k8": [
|
|
"@platforms//cpu:x86_64",
|
|
"@platforms//os:linux",
|
|
],
|
|
}
|