Skip to content

Commit

Permalink
Fix darwin_arm64e architecture (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Feb 8, 2024
1 parent d97e2e3 commit f0d4b17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configs/platforms.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down
10 changes: 10 additions & 0 deletions test/binary_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit f0d4b17

Please sign in to comment.