summary refs log tree commit diff
path: root/lib/tests/systems.nix
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-01-29 19:23:04 -0800
committerRyan Burns <rtburns@protonmail.com>2021-01-30 12:34:24 -0800
commit72b3badb6197a042c52397fcea467f630628c75c (patch)
tree81ead8d6375008dbd721d6bfd26f53151579d41d /lib/tests/systems.nix
parent054f792d315c42bce194a10e797124f4ba102f99 (diff)
downloadnixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar.gz
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar.bz2
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar.lz
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar.xz
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.tar.zst
nixpkgs-72b3badb6197a042c52397fcea467f630628c75c.zip
lib.systems: add powerpc64-linux
PPC64 supports two ABIs: ELF v1 and v2.

ELFv1 is historically what GCC and most packages expect, but this is
changing because musl outright does not work with ELFv1. So any distro
which uses musl must use ELFv2. Many other platforms are moving to ELFv2
too, such as FreeBSD (as of v13) and Gentoo (as of late 2020).

Since we use musl extensively, let's default to ELFv2.

Nix gives us the power to specify this declaratively for the entire
system, so ELFv1 is not dropped entirely. It can be specified explicitly
in the target config, e.g. "powerpc64-unknown-linux-elfv1". Otherwise the
default is "powerpc64-unknown-linux-elfv2". For musl,
"powerpc64-unknown-linux-musl" must use elfv2 internally to function.
Diffstat (limited to 'lib/tests/systems.nix')
-rw-r--r--lib/tests/systems.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/systems.nix b/lib/tests/systems.nix
index eed7ee725bc..c0800df25ed 100644
--- a/lib/tests/systems.nix
+++ b/lib/tests/systems.nix
@@ -28,7 +28,7 @@ with lib.systems.doubles; lib.runTests {
   testredox = mseteq redox [ "x86_64-redox" ];
   testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
   testillumos = mseteq illumos [ "x86_64-solaris" ];
-  testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64le-linux" ];
+  testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64-linux" "powerpc64le-linux" ];
   testnetbsd = mseteq netbsd [ "i686-netbsd" "x86_64-netbsd" ];
   testopenbsd = mseteq openbsd [ "i686-openbsd" "x86_64-openbsd" ];
   testwindows = mseteq windows [ "i686-cygwin" "x86_64-cygwin" "i686-windows" "x86_64-windows" ];