From cd368bef62abce503c6be6f124f1ac53f15cc4e2 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 27 Apr 2022 18:39:32 +0200 Subject: rules: Honor transition variable in *-deps expressions --- CC/EXPRESSIONS | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index b7b755d..23c28d7 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -129,10 +129,11 @@ } , "compile-deps": { "doc": ["Collect compile dependencies (headers) from given target_fields"] - , "vars": ["deps-fieldnames"] + , "vars": ["deps-fieldnames", "transition"] , "vars_doc": { "deps-fieldnames": ["List of target_field names to collect dependencies from."] + , "transition": ["The optional configuration transition for the targets."] } , "imports": {"runfiles_list": ["./", "..", "field_runfiles_list"]} , "expression": @@ -166,10 +167,11 @@ } , "link-deps": { "doc": ["Collect link dependencies (libraries) from given target_fields"] - , "vars": ["deps-fieldnames"] + , "vars": ["deps-fieldnames", "transition"] , "vars_doc": { "deps-fieldnames": ["List of target_field names to collect dependencies from."] + , "transition": ["The optional configuration transition for the targets."] } , "imports": {"artifacts_list": ["./", "..", "field_artifacts_list"]} , "expression": -- cgit v1.2.3