summaryrefslogtreecommitdiff
path: root/rules/transitions/EXPRESSIONS
diff options
context:
space:
mode:
Diffstat (limited to 'rules/transitions/EXPRESSIONS')
-rw-r--r--rules/transitions/EXPRESSIONS29
1 files changed, 29 insertions, 0 deletions
diff --git a/rules/transitions/EXPRESSIONS b/rules/transitions/EXPRESSIONS
new file mode 100644
index 0000000..92be685
--- /dev/null
+++ b/rules/transitions/EXPRESSIONS
@@ -0,0 +1,29 @@
+{ "for host":
+ { "vars": ["ARCH", "HOST_ARCH"]
+ , "expression":
+ { "type": "singleton_map"
+ , "key": "TARGET_ARCH"
+ , "value":
+ { "type": "var"
+ , "name": "HOST_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ }
+ }
+, "with fPIC":
+ { "doc":
+ [ "Transition that enables BUILD_POSITION_INDEPENDENT if config_field"
+ , "\"shared\" is not empty."
+ ]
+ , "expression":
+ { "type": "if"
+ , "cond": {"type": "FIELD", "name": "shared"}
+ , "then":
+ { "type": "singleton_map"
+ , "key": "BUILD_POSITION_INDEPENDENT"
+ , "value": true
+ }
+ , "else": {"type": "empty_map"}
+ }
+ }
+}