1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #13520 from xokdvium/ppc-meson-endian

meson: Correctly handle endianness for PowerPC CPU families
This commit is contained in:
Jörg Thalheim 2025-07-23 22:35:58 +02:00 committed by GitHub
commit a3f6508761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,10 @@
nix_system_cpu = {
'ppc64' : 'powerpc64',
'ppc64le' : 'powerpc64le',
'ppc' : 'powerpc',
'ppcle' : 'powerpcle',
}.get(
powerpc_system_cpus = [ 'ppc64', 'ppc' ]
nix_system_cpu = {'ppc64' : 'powerpc64', 'ppc' : 'powerpc'}.get(
host_machine.cpu_family(),
host_machine.cpu_family(),
)
if powerpc_system_cpus.contains(host_machine.cpu_family()) and host_machine.endian() == 'little'
nix_system_cpu += 'le'
endif