From b6d48619ed872c60d3008665c2a5b94e0a6b2b7a Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Mon, 25 Aug 2025 14:08:32 +0200 Subject: [PATCH] lib.systems: add ppc32 target --- lib/systems/doubles.nix | 1 + lib/systems/examples.nix | 5 +++++ lib/tests/systems.nix | 2 ++ 3 files changed, 8 insertions(+) diff --git a/lib/systems/doubles.nix b/lib/systems/doubles.nix index 90f67b3916fb..4c80300b01c4 100644 --- a/lib/systems/doubles.nix +++ b/lib/systems/doubles.nix @@ -45,6 +45,7 @@ let "mips64-linux" "mips64el-linux" "mipsel-linux" + "powerpc-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux" diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 9686ee8e59ab..9a53dac073ae 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -36,6 +36,11 @@ rec { }; }; + ppc32 = { + config = "powerpc-unknown-linux-gnu"; + rust.rustcTarget = "powerpc-unknown-linux-gnu"; + }; + sheevaplug = { config = "armv5tel-unknown-linux-gnueabi"; } diff --git a/lib/tests/systems.nix b/lib/tests/systems.nix index 236ee20727e6..3bddf78dea19 100644 --- a/lib/tests/systems.nix +++ b/lib/tests/systems.nix @@ -94,6 +94,7 @@ lib.runTests ( ]; testmmix = mseteq mmix [ "mmix-mmixware" ]; testpower = mseteq power [ + "powerpc-linux" "powerpc-netbsd" "powerpc-none" "powerpc64-linux" @@ -174,6 +175,7 @@ lib.runTests ( "mips64-linux" "mips64el-linux" "mipsel-linux" + "powerpc-linux" "powerpc64-linux" "powerpc64le-linux" "riscv32-linux"