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:
commit
a3f6508761
1 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue