summaryrefslogtreecommitdiff
path: root/CC/test
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-04-27 13:18:53 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-04-28 14:36:06 +0200
commitd2fa5912a44a30602e6a4b14cdb99402a4e72a42 (patch)
tree23b5e2a8c5f51e2fd455cfa71dc0b2a833bf0d7d /CC/test
parentcd368bef62abce503c6be6f124f1ac53f15cc4e2 (diff)
downloadrules-cc-d2fa5912a44a30602e6a4b14cdb99402a4e72a42.tar.gz
rules: Add "link-args-deps" expression
... for collecting link-args from dependencies. By consistently using this expression, we fix an issue with C++ binary and test, which both did not collect the linker arguments from their proto-deps.
Diffstat (limited to 'CC/test')
-rw-r--r--CC/test/RULES14
1 files changed, 2 insertions, 12 deletions
diff --git a/CC/test/RULES b/CC/test/RULES
index 3f8e236..93d7706 100644
--- a/CC/test/RULES
+++ b/CC/test/RULES
@@ -61,6 +61,7 @@
, "runfiles_list": ["./", "../..", "field_runfiles_list"]
, "compile-deps": ["./", "..", "compile-deps"]
, "link-deps": ["./", "..", "link-deps"]
+ , "link-args-deps": ["./", "..", "link-args-deps"]
, "objects": ["./", "..", "objects"]
, "default-CXX": ["./", "..", "default-CXX"]
, "default-CXXFLAGS": ["./", "..", "default-CXXFLAGS"]
@@ -152,18 +153,7 @@
{ "type": "++"
, "$1":
[ {"type": "keys", "$1": {"type": "var", "name": "objects"}}
- , { "type": "++"
- , "$1":
- { "type": "foreach"
- , "var": "dep"
- , "range": {"type": "FIELD", "name": "deps"}
- , "body":
- { "type": "DEP_PROVIDES"
- , "dep": {"type": "var", "name": "dep"}
- , "provider": "link-args"
- }
- }
- }
+ , {"type": "CALL_EXPRESSION", "name": "link-args-deps"}
]
}
}