Skip to content

meson: Fix nix_system_cpu for MIPS and 32 bit ARM systems#13558

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:nix-cpu-system-fix
Jul 26, 2025
Merged

meson: Fix nix_system_cpu for MIPS and 32 bit ARM systems#13558
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:nix-cpu-system-fix

Conversation

@xokdvium
Copy link
Contributor

Motivation

Prior patches in 54dc531 and 6db6190 fixed the default system double for i686 and ppc/ppc64. This also patch also covers 32 bit arm and mips. ARM cpu names are taken from host_machine.cpu() for a lack of a better option, but host_machine.cpu_family() is preferred, since that is supposed to be somewhat standard for cross files. Endianness is handled correctly by looking at host_machine.endian().

This also updates the documentation to be up to date to how system cpu is translated from the host_machine specification.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Prior patches in 54dc531
and 6db6190 fixed the default
system double for i686 and ppc/ppc64. This also patch also covers
32 bit arm and mips. ARM cpu names are taken from host_machine.cpu()
for a lack of a better option, but host_machine.cpu_family() is
preferred, since that is supposed to be somewhat standard for cross
files. Endianness is handled correctly by looking at host_machine.endian().

This also updates the documentation to be up to date to how system cpu
is translated from the host_machine specification.
@Ericson2314
Copy link
Member

Good to see the docs updated.

@Ericson2314 Ericson2314 merged commit 44a8f8d into NixOS:master Jul 26, 2025
13 checks passed
@xokdvium xokdvium added backport 2.28-maintenance Automatically creates a PR against the branch backport 2.29-maintenance Automatically creates a PR against the branch backport 2.30-maintenance Automatically creates a PR against the branch labels Jul 26, 2025
mergify bot added a commit that referenced this pull request Jul 27, 2025
…3558

meson: Fix `nix_system_cpu` for MIPS and 32 bit ARM systems (backport #13558)
mergify bot added a commit that referenced this pull request Jul 27, 2025
…3558

meson: Fix `nix_system_cpu` for MIPS and 32 bit ARM systems (backport #13558)
mergify bot added a commit that referenced this pull request Jul 27, 2025
…3558

meson: Fix `nix_system_cpu` for MIPS and 32 bit ARM systems (backport #13558)
@xokdvium xokdvium deleted the nix-cpu-system-fix branch July 28, 2025 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch backport 2.29-maintenance Automatically creates a PR against the branch backport 2.30-maintenance Automatically creates a PR against the branch documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants