summaryrefslogtreecommitdiff
path: root/CC
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-19 10:57:52 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-19 12:12:40 +0200
commit85f97ddf0e18548d95d50aa1f7599a1aad833d97 (patch)
treee4cd40ade0d1e633bc4a16e1cf94cee353a24311 /CC
parent153f2ef5035d82df02e2e748114279d54ac863ff (diff)
downloadrules-cc-85f97ddf0e18548d95d50aa1f7599a1aad833d97.tar.gz
rules-cc: Binaries should keep the compile dependency headers for debugging
Diffstat (limited to 'CC')
-rw-r--r--CC/EXPRESSIONS11
1 files changed, 8 insertions, 3 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index f3188c0..c7ee9e0 100644
--- a/CC/EXPRESSIONS
+++ b/CC/EXPRESSIONS
@@ -1475,9 +1475,14 @@
, { "type": "if"
, "cond": {"type": "var", "name": "DEBUG"}
, "then":
- { "type": "let*"
- , "bindings": [["deps-provider", "debug-hdrs"]]
- , "body": {"type": "CALL_EXPRESSION", "name": "debug-deps"}
+ { "type": "map_union"
+ , "$1":
+ [ { "type": "let*"
+ , "bindings": [["deps-provider", "debug-hdrs"]]
+ , "body": {"type": "CALL_EXPRESSION", "name": "debug-deps"}
+ }
+ , {"type": "var", "name": "compile-deps"}
+ ]
}
, "else": {"type": "empty_map"}
}