Skip to content

Commit 5e3bfc8

Browse files
committed
feat(python): add arm64e-apple-darwin platform support
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 5e3bfc8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

python/versions.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,14 @@ def _generate_platforms():
11081108
os_name = MACOS_NAME,
11091109
arch = "aarch64",
11101110
),
1111+
"arm64e-apple-darwin": platform_info(
1112+
compatible_with = [
1113+
"@platforms//os:macos",
1114+
"@platforms//cpu:arm64e",
1115+
],
1116+
os_name = MACOS_NAME,
1117+
arch = "aarch64",
1118+
),
11111119
"aarch64-pc-windows-msvc": platform_info(
11121120
compatible_with = [
11131121
"@platforms//os:windows",

0 commit comments

Comments
 (0)