From f0d4b17cc3bc335d5af3d4385ae4265e5d615b80 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 8 Feb 2024 16:13:36 -0500 Subject: [PATCH] Fix darwin_arm64e architecture (#301) --- configs/platforms.bzl | 2 +- test/binary_tests.bzl | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configs/platforms.bzl b/configs/platforms.bzl index 9ebaec4..c020d5f 100644 --- a/configs/platforms.bzl +++ b/configs/platforms.bzl @@ -9,7 +9,7 @@ APPLE_PLATFORMS_CONSTRAINTS = { ], "darwin_arm64e": [ "@platforms//os:macos", - "@platforms//cpu:arm64", + "@platforms//cpu:arm64e", "@build_bazel_apple_support//constraints:apple", "@build_bazel_apple_support//constraints:device", ], diff --git a/test/binary_tests.bzl b/test/binary_tests.bzl index 54453f1..ba5618a 100644 --- a/test/binary_tests.bzl +++ b/test/binary_tests.bzl @@ -22,6 +22,16 @@ def binary_test_suite(name): target_under_test = "//test/test_data:macos_binary", ) + apple_verification_test( + name = "{}_macos_arm64e_binary_test".format(name), + tags = [name], + build_type = "device", + cpus = {"macos_cpus": "arm64e"}, + expected_platform_type = "macos", + verifier_script = "//test/shell:verify_binary.sh", + target_under_test = "//test/test_data:macos_binary", + ) + apple_verification_test( name = "{}_macos_binary_with_spaces_test".format(name), tags = [name],