summaryrefslogtreecommitdiff
path: root/rules/EXPRESSIONS
AgeCommit message (Collapse)Author
2024-11-06Use quote and quasi-quote to simplify some expressionsKlaus Aehlig
2024-11-06Prefer built-in "nub_left"Klaus Aehlig
Now that justbuild 1.4 is available, the workaround of defining "nub_left" in terms of "reverse" and "nub_right" is no longer necessary.
2024-02-15Remove unnecessarily quadratic expressionsKlaus Aehlig
... not that everyone has updated to 1.2 or later we can use the built-in expressions "reverse" and "set".
2023-08-16rules: Implement nub_left for PATHOliver Reiche
2023-04-18rules: Support install-with-deps ruleOliver Reiche
Backport of commits a382b308b9011606e7d07376808812d51631d558 and 5ae5134804b6edaaffec593868f133dd840ef7df from the rules-cc repository.
2022-12-14rules: Report fieldname of overlapping artifacts/runfilesOliver Reiche
2022-05-02Expression ['', 'field_runfiles']: ensure disjointnessKlaus Aehlig
... by using "disjoint_map_union" instead of "map_union" which has a latest-wins semantics and does not have a "msg" arguement.
2022-04-29rules: Perform disjoint map union in field_* expressionsOliver Reiche
... and replace all instances where the field_*_list variant of those expressions is used solely for the purpose of performing the disjoint union manually.
2022-04-28rules: Add "field_map_provider" and "field_list_provider"Oliver Reiche
... to query and merge map/list entries from the provides map of the given target_fields' targets.
2022-04-28rules: Fix field_artifacts/field_runfiles expressions' docsOliver Reiche
2022-04-26rules: Add field_artifacts_list and field_runfiles_listOliver Reiche
... which are more efficient if the caller wants to perform the union manually (because disjointness should be enforced or additional maps should be added to the union, etc.). As a positive side effect, code reuse is slightly increased by consistently calling these newly introduced expressions for obtaining the artifacts/runfiles from all targets of a target field.
2022-03-04Add rule ["patch", "file"]Klaus Aehlig
... to patch a single file, logically in place.
2022-02-23common rule expression: improve error reportingKlaus Aehlig
... by asserting that "stage_singleton_field" return a non-empty map and providing a meaningful message in the "disjoint_map_union" contained in it.
2022-02-22Initial self-hosting commitKlaus Aehlig
This is the initial version of our tool that is able to build itself. In can be bootstrapped by ./bin/bootstrap.py Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com> Co-authored-by: Victor Moreno <victor.moreno1@huawei.com>