-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollforward of f7946d0: Propagate graph_node_aspect over a computed d…
…efault attribute Set computed default to deps only when we need to propagate graph_node aspect. This change makes it possible to collapse cc_binary and cc_test into a single rule. NEW: using initializers setting a private field (instead of computed default that caused a regression). This is a workaround that propagates an aspect optionally. Allowing initializers set a private field is a potential replacement for computed default. Current implementation of initializers allows this only in builtins - we need to be careful, because implicit dependencies potentially affect other system. PiperOrigin-RevId: 580118899 Change-Id: I4625c0c4f903b19e697f8d5ae09bbea682d78a13
- Loading branch information
1 parent
b599d81
commit c30826d
Showing
12 changed files
with
101 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/main/starlark/builtins_bzl/common/cc/cc_binary_with_aspects.bzl
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
src/main/starlark/builtins_bzl/common/cc/cc_binary_without_aspects.bzl
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/starlark/builtins_bzl/common/cc/cc_binary_wrapper.bzl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/main/starlark/builtins_bzl/common/cc/cc_test_with_aspects.bzl
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/starlark/builtins_bzl/common/cc/cc_test_without_aspects.bzl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.