summaryrefslogtreecommitdiff
path: root/CC/proto
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-11-16 16:41:38 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-11-20 16:01:56 +0100
commita513b2e823dc6a2e37ae1fad6924b3d5c34dabf0 (patch)
tree14aea175d8ddad8625b59fc9e4b200332674857b /CC/proto
parentd414173d43fb4e8e6660752ba8b30cd5310f8789 (diff)
downloadrules-cc-a513b2e823dc6a2e37ae1fad6924b3d5c34dabf0.tar.gz
rules: Fix flag inheritance
... which should accumulate values from all base targets unless the flag type (CFLAGS, CXXFLAGS, or LDFLAGS) is explicity overwritten by the inheritor.
Diffstat (limited to 'CC/proto')
-rw-r--r--CC/proto/RULES7
1 files changed, 3 insertions, 4 deletions
diff --git a/CC/proto/RULES b/CC/proto/RULES
index 4ffc73b..2fc0346 100644
--- a/CC/proto/RULES
+++ b/CC/proto/RULES
@@ -56,6 +56,7 @@
}
, "imports":
{ "base-provides": ["./", "..", "defaults-base-provides"]
+ , "base-provides-++": ["./", "..", "defaults-base-provides-++"]
, "base-provides-list": ["./", "..", "defaults-base-provides-list"]
, "artifacts_list": ["", "field_artifacts_list"]
, "nub_left": ["", "nub_left"]
@@ -89,7 +90,7 @@
, { "type": "if"
, "cond": {"type": "var", "name": "LDFLAGS"}
, "then": {"type": "var", "name": "LDFLAGS"}
- , "else": {"type": "CALL_EXPRESSION", "name": "base-provides"}
+ , "else": {"type": "CALL_EXPRESSION", "name": "base-provides-++"}
}
]
, ["provider", "GRPC_PLUGIN"]
@@ -105,9 +106,7 @@
, { "type": "++"
, "$1":
[ {"type": "var", "name": "PATH"}
- , { "type": "++"
- , "$1": {"type": "CALL_EXPRESSION", "name": "base-provides-list"}
- }
+ , {"type": "CALL_EXPRESSION", "name": "base-provides-++"}
]
}
]