diff options
Diffstat (limited to 'CC/proto')
-rw-r--r-- | CC/proto/RULES | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/CC/proto/RULES b/CC/proto/RULES index dc9d66c..10739d7 100644 --- a/CC/proto/RULES +++ b/CC/proto/RULES @@ -77,21 +77,8 @@ , "HOST_ARCH": ["The architecture on which the build actions are carried out."] , "DEBUG": - [ "Map configuring the debug-stage, needed for local debugging." - , "If non-empty, debug mode is enabled." - , "" - , "The key \"USE_DEBUG_FISSION\" expects a flag which enables debug" - , "fission, but does not add any flags. Explicitly setting it to a false" - , "value is needed to enable regular debug mode." - , "The key \"FISSION_CONFIG\" expects a map configuring debug fission." - , " - subkey \"USE_SPLIT_DWARF\" expects a flag that, if true, adds the" - , "-gsplit-dwarf compile flag." - , " - subkey \"DWARF_VERSION\" expects a string that adds the" - , "-gdwarf-<value> compile flag." - , " - subkey \"USE_GDB_INDEX\" expects a flag that, if true, adds the" - , "-Wl,--gdb-index linker flag." - , " - subkey \"USE_DEBUG_TYPES_SECTION\" expects a flag that, if true," - , "adds the -fdebug-types-section compile flag." + [ "If logically true (typically, a non-empty map), use debug-related" + , "options, otherwise not." ] } , "imports": @@ -332,6 +319,13 @@ { "type": "let*" , "bindings": [ ["name", {"type": "join", "$1": {"type": "FIELD", "name": "name"}}] + , [ "DEBUG" + , { "type": "if" + , "cond": {"type": "var", "name": "DEBUG"} + , "then": {"type": "var", "name": "DEBUG"} + , "else": {"type": "empty_map"} + } + ] , [ "stage" , { "type": "join" , "separator": "/" @@ -364,6 +358,13 @@ , "bindings": [ ["service support", true] , ["name", {"type": "join", "$1": {"type": "FIELD", "name": "name"}}] + , [ "DEBUG" + , { "type": "if" + , "cond": {"type": "var", "name": "DEBUG"} + , "then": {"type": "var", "name": "DEBUG"} + , "else": {"type": "empty_map"} + } + ] , [ "stage" , { "type": "join" , "separator": "/" |