Skip to content

Commit

Permalink
Add a few more exec_compatible_with (#2661)
Browse files Browse the repository at this point in the history
Makes working with `ios_application`, `ios_build_test`, etc on
multi-platform builds easier.

Signed-off-by: Brentley Jones <[email protected]>
  • Loading branch information
brentleyjones authored Mar 3, 2025
1 parent e6c86b3 commit 45f1004
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apple/dtrace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ dtrace_compile = rule(
doc = "dtrace(.d) source files to be compiled.",
),
}),
exec_compatible_with = [
"@platforms//os:macos",
],
fragments = ["apple"],
doc = """
Compiles
Expand Down
3 changes: 3 additions & 0 deletions apple/internal/rule_factory.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def _create_apple_rule(
),
cfg = cfg,
doc = doc,
exec_compatible_with = [
"@platforms//os:macos",
],
executable = is_executable,
fragments = ["apple", "cpp", "objc", "j2objc"],
toolchains = toolchains,
Expand Down
3 changes: 3 additions & 0 deletions apple/internal/testing/build_test_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ number (for example, `"9.0"`).
),
},
doc = doc,
exec_compatible_with = [
"@platforms//os:macos",
],
implementation = _apple_build_test_rule_impl,
test = True,
cfg = transition_support.apple_rule_transition,
Expand Down

0 comments on commit 45f1004

Please sign in to comment.