summaryrefslogtreecommitdiff
path: root/CC/RULES
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-05-28 12:50:25 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-03 16:56:47 +0200
commitad89c7bf02011e28d7ec822186e1d834059c8dcb (patch)
tree86ffeb9e624f84d4083500e4b521def7af99843f /CC/RULES
parent03fa22155c8236e4834e2b51bc7a631ca170459e (diff)
downloadrules-cc-ad89c7bf02011e28d7ec822186e1d834059c8dcb.tar.gz
debug rule: Fix staging of headers
For libraries the headers of private dependencies were wrongly skipped from staging. For binaries, no headers were passed at all in the provides map. To fix these issues, an additional field is added in the provides map to ensure we collect, and then properly stage, all needed headers for both libraries and binaries.
Diffstat (limited to 'CC/RULES')
-rw-r--r--CC/RULES7
1 files changed, 5 insertions, 2 deletions
diff --git a/CC/RULES b/CC/RULES
index 09605f7..7e9fbf9 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -521,7 +521,8 @@
[ "List of strings that have to be added to the command line for linking actions"
, "in targets depending on this library"
]
- , "debug-srcs": ["Map of all dependencies' sources needed for debugging."]
+ , "debug-srcs": ["Map of all sources needed for debugging."]
+ , "debug-hdrs": ["Map of all additional headers needed for debugging."]
}
, "anonymous":
{ "proto-deps":
@@ -768,7 +769,9 @@
, "artifacts_doc": ["The final binary, staged to the given directory"]
, "runfiles_doc": ["None"]
, "provides_doc":
- {"debug-srcs": ["Map of all dependencies' sources needed for debugging."]}
+ { "debug-srcs": ["Map of all sources needed for debugging."]
+ , "debug-hdrs": ["Map of all additional headers needed for debugging."]
+ }
, "anonymous":
{ "private-proto-deps":
{ "target": "private-proto"