summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-09-19 13:53:38 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-10-10 17:28:26 +0200
commit1b8e5c3362673ece4bffe49e0f613eb3b5ec0aeb (patch)
tree31ec1b9eed5f89348ae79ae021c7f63d8e2b91fb
parent8e6921348385bfe649ad5dacc6f23f08eddc0f3c (diff)
downloadrules-cc-1b8e5c3362673ece4bffe49e0f613eb3b5ec0aeb.tar.gz
rules: Remove CC/configure rule
-rw-r--r--CC/EXPRESSIONS66
-rw-r--r--CC/RULES45
2 files changed, 0 insertions, 111 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index 2cf5957..48f40a2 100644
--- a/CC/EXPRESSIONS
+++ b/CC/EXPRESSIONS
@@ -82,72 +82,6 @@
}
}
}
-, "configure transition":
- { "vars": ["COMPILER_FAMILY"]
- , "expression":
- { "type": "let*"
- , "bindings":
- [ [ "OS"
- , { "type": "assert_non_empty"
- , "msg": "Missing field \"os\" for \"configure\"."
- , "$1": {"type": "join", "$1": {"type": "FIELD", "name": "os"}}
- }
- ]
- , [ "ARCH"
- , { "type": "assert_non_empty"
- , "msg": "Missing field \"arch\" for \"configure\"."
- , "$1": {"type": "join", "$1": {"type": "FIELD", "name": "arch"}}
- }
- ]
- , ["HOST_ARCH", {"type": "var", "name": "ARCH"}]
- , [ "TARGET_ARCH"
- , {"type": "join", "$1": {"type": "FIELD", "name": "target_arch"}}
- ]
- , [ "TARGET_ARCH"
- , { "type": "if"
- , "cond": {"type": "var", "name": "TARGET_ARCH"}
- , "then": {"type": "var", "name": "TARGET_ARCH"}
- , "else": {"type": "var", "name": "ARCH"}
- }
- ]
- , [ "FAMILY"
- , {"type": "join", "$1": {"type": "FIELD", "name": "compiler_family"}}
- ]
- , [ "COMPILER_FAMILY"
- , { "type": "if"
- , "cond": {"type": "var", "name": "FAMILY"}
- , "then": {"type": "var", "name": "FAMILY"}
- , "else": {"type": "var", "name": "COMPILER_FAMILY"}
- }
- ]
- ]
- , "body":
- { "type": "map_union"
- , "$1":
- [ { "type": "singleton_map"
- , "key": "OS"
- , "value": {"type": "var", "name": "OS"}
- }
- , { "type": "singleton_map"
- , "key": "ARCH"
- , "value": {"type": "var", "name": "TARGET_ARCH"}
- }
- , { "type": "singleton_map"
- , "key": "HOST_ARCH"
- , "value": {"type": "var", "name": "HOST_ARCH"}
- }
- , { "type": "singleton_map"
- , "key": "TARGET_ARCH"
- , "value": {"type": "var", "name": "TARGET_ARCH"}
- }
- , { "type": "singleton_map"
- , "key": "COMPILER_FAMILY"
- , "value": {"type": "var", "name": "COMPILER_FAMILY"}
- }
- ]
- }
- }
- }
, "compile-deps":
{ "doc": ["Collect compile dependencies (headers) from given target_fields"]
, "vars": ["deps-fieldnames", "transition"]
diff --git a/CC/RULES b/CC/RULES
index 44bdabc..6fdab85 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -134,51 +134,6 @@
}
}
}
-, "configure":
- { "doc":
- [ "A rule to provide a static platform configuration for a target."
- , "The artifacts and runfiles of the specified target will be propagated."
- , "The target defined by this rule does not propagate any provides data."
- ]
- , "config_fields": ["os", "arch", "target_arch", "compiler_family"]
- , "target_fields": ["target"]
- , "config_vars": ["COMPILER_FAMILY"]
- , "field_doc":
- { "os": ["The operation system used for building."]
- , "arch": ["The architecture used for building."]
- , "target_arch":
- [ "Non-mandatory target architecture to build for. If omitted, target"
- , "architecture is derived from \"arch\"."
- ]
- , "compiler_family":
- [ "Non-mandatory compiler family used for building. If omitted, compiler"
- , "family is taken from variable \"COMPILER_FAMILY\"."
- ]
- , "target":
- [ "The target to configure. Multiple targets are supported, but their"
- , "artifacts and runfiles should not conflict."
- ]
- }
- , "imports":
- { "transition": "configure transition"
- , "artifacts": ["./", "..", "field_artifacts"]
- , "runfiles": ["./", "..", "field_runfiles"]
- }
- , "config_transitions":
- {"target": [{"type": "CALL_EXPRESSION", "name": "transition"}]}
- , "expression":
- { "type": "let*"
- , "bindings":
- [ ["fieldname", "target"]
- , ["transition", {"type": "CALL_EXPRESSION", "name": "transition"}]
- ]
- , "body":
- { "type": "RESULT"
- , "artifacts": {"type": "CALL_EXPRESSION", "name": "artifacts"}
- , "runfiles": {"type": "CALL_EXPRESSION", "name": "runfiles"}
- }
- }
- }
, "header directory":
{ "doc":
[ "A directory of header files."