diff options
-rw-r--r-- | CC/EXPRESSIONS | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index 62293a8..236e430 100644 --- a/CC/EXPRESSIONS +++ b/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" |