diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2021-09-07 10:10:38 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-09-09 10:58:47 +0000 |
commit | 34e468dc4268cee86aa019ae9bc52768e60fb5f7 (patch) | |
tree | f199da6591d3ab885e0185ee0c018b5412fa61cc /lib/systems/default.nix | |
parent | 3e788570514ec7098f2e7fd00edc673fc89b3a21 (diff) |
lib/systems: add minimal s390x-linux cross-compile support
Tested basic functionality as: $ nix-build --arg crossSystem '{ config = "s390x-unknown-linux-gnu"; }' -A re2c $ file ./result/bin/re2c $ ./result/bin/re2c: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), dynamically linked, interpreter ...-gnu-2.33-50/lib/ld64.so.1, for GNU/Linux 2.6.32, not stripped $ qemu-s390x ./result/bin/re2c --version re2c 2.2
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r-- | lib/systems/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 70ec98b03c16b..ef609859abbf8 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -107,6 +107,7 @@ rec { else if final.isMips then "mips" else if final.isPower then "powerpc" else if final.isRiscV then "riscv" + else if final.isS390 then "s390" else final.parsed.cpu.name; qemuArch = |