summaryrefslogtreecommitdiff
path: root/CC/RULES
diff options
context:
space:
mode:
Diffstat (limited to 'CC/RULES')
-rw-r--r--CC/RULES5
1 files changed, 4 insertions, 1 deletions
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"