diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-06-19 10:57:52 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-06-19 12:12:40 +0200 |
commit | 85f97ddf0e18548d95d50aa1f7599a1aad833d97 (patch) | |
tree | e4cd40ade0d1e633bc4a16e1cf94cee353a24311 | |
parent | 153f2ef5035d82df02e2e748114279d54ac863ff (diff) | |
download | rules-cc-85f97ddf0e18548d95d50aa1f7599a1aad833d97.tar.gz |
rules-cc: Binaries should keep the compile dependency headers for debugging
-rw-r--r-- | CC/EXPRESSIONS | 11 |
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"} } |