| 1 |
name: target_machine |
| 2 |
long_name: Target machine information |
| 3 |
extends: build_machine |
| 4 |
description: | |
| 5 |
Provides information about the target machine -- the machine on which |
| 6 |
the compiled binary's output will run. Hence, this object should only |
| 7 |
be used while cross-compiling a compiler. See |
| 8 |
[Cross-compilation](Cross-compilation.md). |
| 9 |
|
| 10 |
It has the same methods as [[@build_machine]]. |
| 11 |
|
| 12 |
When all compilation is 'native', all the methods return the same |
| 13 |
values as [[@build_machine]] (because the build machine is the host |
| 14 |
machine and the target machine). |
| 15 |
|
| 16 |
Note that while cross-compiling, it simply returns the values defined |
| 17 |
in the cross-info file. If `target_machine` values are not defined in |
| 18 |
the cross-info file, `host_machine` values are returned instead. |