summaryrefslogtreecommitdiff
path: root/rules/CC
diff options
context:
space:
mode:
Diffstat (limited to 'rules/CC')
-rw-r--r--rules/CC/EXPRESSIONS38
1 files changed, 36 insertions, 2 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS
index 202496ef..03c9c072 100644
--- a/rules/CC/EXPRESSIONS
+++ b/rules/CC/EXPRESSIONS
@@ -1217,10 +1217,12 @@
]
}
]
+ , ["extra outs", []]
]
, "body":
{ "type": "env"
- , "vars": ["cmd", "src", "direct deps artifact names"]
+ , "vars":
+ ["cmd", "src", "direct deps artifact names", "extra outs"]
}
}
}
@@ -1272,6 +1274,33 @@
, "$1": ["work", {"type": "var", "name": "out"}]
}
]
+ , [ "dwarf out"
+ , { "type": "change_ending"
+ , "$1": {"type": "var", "name": "src_name"}
+ , "ending": ".dwo"
+ }
+ ]
+ , [ "work dwarf out"
+ , { "type": "join"
+ , "separator": "/"
+ , "$1": ["work", {"type": "var", "name": "dwarf out"}]
+ }
+ ]
+ , [ "extra outs"
+ , { "type": "if"
+ , "cond":
+ { "type": "lookup"
+ , "key": "USE_DEBUG_FISSION"
+ , "map":
+ { "type": "var"
+ , "name": "DEBUG"
+ , "default": {"type": "empty_map"}
+ }
+ }
+ , "then": [{"type": "var", "name": "work dwarf out"}]
+ , "else": []
+ }
+ ]
, [ "cmd"
, { "type": "++"
, "$1":
@@ -1295,7 +1324,12 @@
[["src", {"type": "var", "name": "work src_name"}]]
, "body":
{ "type": "env"
- , "vars": ["cmd", "src", "direct deps artifact names"]
+ , "vars":
+ [ "cmd"
+ , "src"
+ , "direct deps artifact names"
+ , "extra outs"
+ ]
}
}
}