summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-04-27 18:39:32 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-04-28 14:34:54 +0200
commitcd368bef62abce503c6be6f124f1ac53f15cc4e2 (patch)
tree2d0aaa989c2c2cbc73d41570099de46320868629
parent076dd3cdebb6b8662eb1c716261a78b83cb74e0c (diff)
downloadrules-cc-cd368bef62abce503c6be6f124f1ac53f15cc4e2.tar.gz
rules: Honor transition variable in *-deps expressions
-rw-r--r--CC/EXPRESSIONS6
1 files 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":