summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-04-22 12:53:32 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-04-22 13:56:44 +0200
commita277ee4162bbe4e56b0cb7206595c4ca8416fc2c (patch)
tree9e1608634f5a0cf7f286b21754a809910e1ffc8e
parenteaf4587f032549d79400fd4de9aba7c65e6c2fa2 (diff)
downloadrules-cc-a277ee4162bbe4e56b0cb7206595c4ca8416fc2c.tar.gz
rule ["CC", "header directory"]: drop ill-advised "public stage"
The idea, as documented, of a header directory is to have a directory, closed as a tree, owned by the respective library and internally handled in an efficient way (as a single tree). If we open up that directory, we just have staged data, and therefore should treat it as such.
-rw-r--r--CC/RULES22
1 files changed, 4 insertions, 18 deletions
diff --git a/CC/RULES b/CC/RULES
index 81140cb..d687bf3 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -107,18 +107,13 @@
, "efficiently by the tool."
]
, "target_fields": ["hdrs"]
- , "string_fields": ["stage", "public stage"]
+ , "string_fields": ["stage"]
, "field_doc":
{ "hdrs": ["The header files to be put into the header directory."]
, "stage":
[ "The location of the header directory."
, "Path segments are joined with \"/\"."
]
- , "public stage":
- [ "If non-empty, no closure for the header directory's stage is created, "
- , "so can be combined with other header directories having the same "
- , "public staging directory."
- ]
}
, "expression":
{ "type": "let*"
@@ -141,18 +136,9 @@
}
]
, [ "dir"
- , { "type": "if"
- , "cond": {"type": "FIELD", "name": "public stage"}
- , "then":
- { "type": "to_subdir"
- , "subdir": {"type": "var", "name": "stage"}
- , "$1": {"type": "var", "name": "hdrs"}
- }
- , "else":
- { "type": "singleton_map"
- , "key": {"type": "var", "name": "stage"}
- , "value": {"type": "TREE", "$1": {"type": "var", "name": "hdrs"}}
- }
+ , { "type": "singleton_map"
+ , "key": {"type": "var", "name": "stage"}
+ , "value": {"type": "TREE", "$1": {"type": "var", "name": "hdrs"}}
}
]
]