Skip to content

Commit 321976e

Browse files
committed
docs: Use examples for build_machine.cpu() that genuinely exist
Previously, the documentation said that the CPU name might be amd64, but in fact x86_64 (AMD64) machines are detected as x86_64 in both cpu() and cpu_family() during native builds. Reference: https://buildd.debian.org/status/fetch.php?pkg=libglvnd&arch=amd64&ver=1.7.0-1%2Bb1&stamp=1714222481&raw=0 Instead, mention the only common case for more-specific CPU names other than 32-bit x86, namely 32-bit ARM. On Debian's autobuilders (which are running 32-bit user-space on a 64-bit-capable CPU), native builds genuinely do present as `armv8l`: https://buildd.debian.org/status/fetch.php?pkg=libglvnd&arch=armhf&ver=1.7.0-1%2Bb1&stamp=1714223924&raw=0 On other machines, they might be some older CPU functionality level. At the time of writing, cpu() *can* return amd64 when using `meson env2mfile` on Debian systems, but I think that's a bug in env2mfile (mesonbuild#13742). Signed-off-by: Simon McVittie <[email protected]>
1 parent 21b1054 commit 321976e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/yaml/builtins/build_machine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ methods:
2222
2323
- name: cpu
2424
returns: str
25-
description: Returns a more specific CPU name, such as `i686`, `amd64`, etc.
25+
description: Returns a more specific CPU name, such as `i686`, `armv8l`, etc.
2626

2727
- name: system
2828
returns: str

0 commit comments

Comments
 (0)