diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-07-21 15:07:44 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-07-25 11:34:45 +0200 |
commit | d6ade68bc52d56467abdd7aee70c108902f4f0b2 (patch) | |
tree | ecd671fd67f1ddc8ffef26f45b7c4226e9d5f0a4 /CC/RULES | |
parent | 3da82010cea24fb8ed41ff88c5d8df8e086c5aa4 (diff) | |
download | rules-cc-d6ade68bc52d56467abdd7aee70c108902f4f0b2.tar.gz |
Rules: Enforce non-empty library and binary names
Diffstat (limited to 'CC/RULES')
-rw-r--r-- | CC/RULES | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -476,7 +476,10 @@ , ["link-deps", {"type": "CALL_EXPRESSION", "name": "link-deps"}] , ["objects", {"type": "CALL_EXPRESSION", "name": "objects"}] , [ "base name" - , {"type": "join", "$1": {"type": "FIELD", "name": "name"}} + , { "type": "assert_non_empty" + , "msg": "A non-empty name has to be provided for binaries" + , "$1": {"type": "join", "$1": {"type": "FIELD", "name": "name"}} + } ] , [ "binary name" , { "type": "if" |