Skip to content

Commit

Permalink
Default test exec_compatible_with to macOS (#2646)
Browse files Browse the repository at this point in the history
Needed when performing multi-platform builds.

Signed-off-by: Brentley Jones <[email protected]>
  • Loading branch information
brentleyjones authored Feb 10, 2025
1 parent 6815737 commit 8eb7964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apple/internal/rule_factory.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def _create_apple_test_rule(*, doc, implementation, platform_type):
*ide_visible_attrs
),
doc = doc,
exec_compatible_with = [
"@platforms//os:macos",
],
test = True,
toolchains = use_cpp_toolchain(),
)
Expand Down

0 comments on commit 8eb7964

Please sign in to comment.