From d6ade68bc52d56467abdd7aee70c108902f4f0b2 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 21 Jul 2022 15:07:44 +0200 Subject: Rules: Enforce non-empty library and binary names --- CC/RULES | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CC/RULES') diff --git a/CC/RULES b/CC/RULES index 0e9a694..c2c7202 100644 --- a/CC/RULES +++ b/CC/RULES @@ -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" -- cgit v1.2.3