diff options
-rw-r--r-- | CC/EXPRESSIONS | 9 | ||||
-rw-r--r-- | CC/RULES | 5 |
2 files changed, 13 insertions, 1 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": @@ -167,7 +167,7 @@ { "doc": ["A C++ libaray"] , "target_fields": ["srcs", "hdrs", "private-hdrs", "deps", "proto"] , "string_fields": - ["name", "stage", "pure C", "local defines", "link external"] + ["name", "stage", "pure C", "local defines", "local cflags", "link external"] , "config_vars": ["CXX", "CC", "CXXFLAGS", "CFLAGS", "ENV", "AR"] , "implicit": {"defaults": ["defaults"]} , "field_doc": @@ -192,6 +192,8 @@ [ "List of defines set for source files local to this target." , "Each list entry will be prepended by \"-D\"." ] + , "local cflags": + ["List of compile flags set for source files local to this target."] , "link external": ["Additional linker flags for linking external libraries."] , "deps": ["Any other libraries this library depends upon."] @@ -242,6 +244,7 @@ {"type": "join", "$1": ["-D", {"type": "var", "name": "def"}]} } ] + , ["local cflags", {"type": "FIELD", "name": "local cflags"}] , [ "CFLAGS" , { "type": "++" , "$1": |