1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Merge pull request #13529 from NixOS/mergify/bp/2.30-maintenance/pr-13520

meson: Correctly handle endianness for PowerPC CPU families (backport #13520)
This commit is contained in:
mergify[bot] 2025-07-23 21:27:41 +00:00 committed by GitHub
commit 8eaa838768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,10 @@
nix_system_cpu = { powerpc_system_cpus = [ 'ppc64', 'ppc' ]
'ppc64' : 'powerpc64',
'ppc64le' : 'powerpc64le', nix_system_cpu = {'ppc64' : 'powerpc64', 'ppc' : 'powerpc'}.get(
'ppc' : 'powerpc',
'ppcle' : 'powerpcle',
}.get(
host_machine.cpu_family(), host_machine.cpu_family(),
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