summaryrefslogtreecommitdiff
path: root/rules
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
commit96158f57c36bbc649abcd9a213bf04df6cf8a1f5 (patch)
tree5c14080c7a6b69c4c5425be7bf9fc11a3157b8dd /rules
parent351bafefc45727d6f45579397d71a542a84807d9 (diff)
downloadjustbuild-96158f57c36bbc649abcd9a213bf04df6cf8a1f5.tar.gz
rules-cc: Binaries should keep the compile dependency headers for debuggingv1.4.0-alpha+20240619
Diffstat (limited to 'rules')
-rw-r--r--rules/CC/EXPRESSIONS11
1 files changed, 8 insertions, 3 deletions
diff --git a/rules/CC/EXPRESSIONS b/rules/CC/EXPRESSIONS
index f3188c0d..c7ee9e04 100644
--- a/rules/CC/EXPRESSIONS
+++ b/rules/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"}
}