From ecb8968a0f7bd8927c51ce04ad7ffa124d165018 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 21 May 2024 18:50:10 +0200 Subject: Support creating shared lib from object lib --- CC/EXPRESSIONS | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'CC/EXPRESSIONS') 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" -- cgit v1.2.3