Skip to content

Commit

Permalink
Only set exec_properties on the underlying rule (#134)
Browse files Browse the repository at this point in the history
Fixes #133
  • Loading branch information
fmeum authored Dec 3, 2024
1 parent 50fb3c4 commit 79fb112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/cc_define_test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ cc_define_test(
"GREETING_RLOCATIONPATH": "$(rlocationpath :greeting_generic.txt)",
},
}),
exec_properties = {
# Exec groups of the underlying rule can be referenced.
"test.hello": "world",
},
deps = ["@bazel_tools//tools/cpp/runfiles"],
)

Expand Down
3 changes: 2 additions & 1 deletion with_cfg/private/wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ def make_wrapper(
# Attributes common to all rules.
# These attributes are applied to all targets generated by the wrapper.
# testonly, tags and visibility are handled specially.
# exec_properties are only relevant for the underlying rule's actions
# and may reference exec groups only defined on that rule.
_COMMON_ATTRS = [
# keep sorted
"compatible_with",
"deprecation",
"exec_compatible_with",
"exec_properties",
"features",
"restricted_to",
"target_compatible_with",
Expand Down

0 comments on commit 79fb112

Please sign in to comment.