summaryrefslogtreecommitdiff
path: root/rules/CC/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-05-21 18:55:35 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2024-05-21 18:55:35 +0200
commit0c98de88250eacbce78d5d698a8cc04611c61cd0 (patch)
tree717ccfc9cbbea314121412aa63f07951f9d6a6c5 /rules/CC/EXPRESSIONS
parent3b0a33e3668ba6dee94d382497314aaf1d67dc03 (diff)
parentecb8968a0f7bd8927c51ce04ad7ffa124d165018 (diff)
downloadrules-cc-0c98de88250eacbce78d5d698a8cc04611c61cd0.tar.gz
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/CC/EXPRESSIONS')
-rw-r--r--rules/CC/EXPRESSIONS16
1 files changed, 14 insertions, 2 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS
index 62293a8..236e430 100644
--- a/rules/CC/EXPRESSIONS
+++ b/rules/CC/EXPRESSIONS
@@ -1394,7 +1394,13 @@
, ["objects", {"type": "CALL_EXPRESSION", "name": "objects"}]
, [ "base name"
, { "type": "if"
- , "cond": {"type": "var", "name": "objects"}
+ , "cond":
+ { "type": "or"
+ , "$1":
+ [ {"type": "var", "name": "objects"}
+ , {"type": "var", "name": "link-deps"}
+ ]
+ }
, "then":
{ "type": "assert_non_empty"
, "msg": "A name has to be provided for non-header-only libraries"
@@ -1422,7 +1428,13 @@
]
, [ "lib"
, { "type": "if"
- , "cond": {"type": "var", "name": "objects"}
+ , "cond":
+ { "type": "or"
+ , "$1":
+ [ {"type": "var", "name": "objects"}
+ , {"type": "var", "name": "link-deps"}
+ ]
+ }
, "else": {"type": "empty_map"}
, "then":
{ "type": "ACTION"