summaryrefslogtreecommitdiff
path: root/docs/yaml/builtins/target_machine.yaml
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-08-21 16:27:56 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-10-03 11:46:34 +0200
commit2b482e39a90fa1929e0fa4006861f4264f28adb2 (patch)
tree0af5ef229d25bef1b974445406fc3c9d28c0756f /docs/yaml/builtins/target_machine.yaml
parentad65a699f93a7659739287882ca27c58c564670b (diff)
downloadmeson-2b482e39a90fa1929e0fa4006861f4264f28adb2.tar.gz
docs: Add the YAML Reference manual
Diffstat (limited to 'docs/yaml/builtins/target_machine.yaml')
-rw-r--r--docs/yaml/builtins/target_machine.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/yaml/builtins/target_machine.yaml b/docs/yaml/builtins/target_machine.yaml
new file mode 100644
index 000000000..d5c4e4d49
--- /dev/null
+++ b/docs/yaml/builtins/target_machine.yaml
@@ -0,0 +1,17 @@
+name: target_machine
+long_name: Target machine information
+description: |
+ Provides information about the target machine -- the machine on which
+ the compiled binary's output will run. Hence, this object should only
+ be used while cross-compiling a compiler. See
+ [Cross-compilation](Cross-compilation.md).
+
+ It has the same methods as [[@build_machine]].
+
+ When all compilation is 'native', all the methods return the same
+ values as [[@build_machine]] (because the build machine is the host
+ machine and the target machine).
+
+ Note that while cross-compiling, it simply returns the values defined
+ in the cross-info file. If `target_machine` values are not defined in
+ the cross-info file, `host_machine` values are returned instead.