diff options
-rw-r--r-- | CC/EXPRESSIONS | 66 | ||||
-rw-r--r-- | CC/RULES | 45 |
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"] @@ -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." |