summaryrefslogtreecommitdiff
path: root/CC/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-03-03 13:43:44 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-03-03 15:09:11 +0100
commit3e1a403d5790b09dc0b2cdeac22db188d58ff0cc (patch)
tree38b22a53ebe19bedcbd1af60e50dd882e47d4b10 /CC/EXPRESSIONS
parentd7d7f9d796bc73c8f8cb2dbb6e58039a663f9ef3 (diff)
downloadrules-cc-3e1a403d5790b09dc0b2cdeac22db188d58ff0cc.tar.gz
CC rules: Add support for local cflags
Diffstat (limited to 'CC/EXPRESSIONS')
-rw-r--r--CC/EXPRESSIONS9
1 files changed, 9 insertions, 0 deletions
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":