diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-04-27 13:18:53 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-04-28 14:36:06 +0200 |
commit | d2fa5912a44a30602e6a4b14cdb99402a4e72a42 (patch) | |
tree | 23b5e2a8c5f51e2fd455cfa71dc0b2a833bf0d7d /CC/RULES | |
parent | cd368bef62abce503c6be6f124f1ac53f15cc4e2 (diff) | |
download | rules-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/RULES')
-rw-r--r-- | CC/RULES | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -406,6 +406,7 @@ { "artifacts": ["./", "..", "field_artifacts"] , "compile-deps": "compile-deps" , "link-deps": "link-deps" + , "link-args-deps": "link-args-deps" , "objects": "objects" , "compiler": "compiler" , "flags": "flags" @@ -500,18 +501,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"} , {"type": "FIELD", "name": "link external"} ] } |