Skip to content

Commit fa82b68

Browse files
authored
feat(python): add arm64e-apple-darwin platform support (#3535)
MacOS supported architectures include x86_64, arm64 and arm64e. While unusual, there are certain edge cases that require setting the host platform to arm64e, in which case we probably want the python toolchain resolution to happen properly. So we're adding a new platform in this commit that will match the same arm64 toolchain on arm64e platform.
1 parent 889e5ac commit fa82b68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/versions.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,14 @@ def _generate_platforms():
11271127
os_name = LINUX_NAME,
11281128
arch = "aarch64",
11291129
),
1130+
"arm64e-apple-darwin": platform_info(
1131+
compatible_with = [
1132+
"@platforms//os:macos",
1133+
"@platforms//cpu:arm64e",
1134+
],
1135+
os_name = MACOS_NAME,
1136+
arch = "aarch64",
1137+
),
11301138
"armv7-unknown-linux-gnu": platform_info(
11311139
compatible_with = [
11321140
"@platforms//os:linux",

0 commit comments

Comments
 (0)