From 3e1a403d5790b09dc0b2cdeac22db188d58ff0cc Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 3 Mar 2022 13:43:44 +0100 Subject: CC rules: Add support for local cflags --- CC/EXPRESSIONS | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CC/EXPRESSIONS') diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index f1e6592..1002147 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -322,6 +322,7 @@ , "srcs" , "hdrs" , "private-hdrs" + , "local cflags" , "link external" , "extra-provides" ] @@ -376,6 +377,14 @@ } } ] + , [ "CXXFLAGS" + , { "type": "++" + , "$1": + [ {"type": "var", "name": "CXXFLAGS"} + , {"type": "var", "name": "local cflags", "default": []} + ] + } + ] , [ "ENV" , { "type": "map_union" , "$1": -- cgit v1.2.3