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/parse.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/parse.nix')
-rw-r--r-- | lib/systems/parse.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 77e941a913cf0..8a88d8cfbe87a 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -106,6 +106,7 @@ rec { riscv64 = { bits = 64; significantByte = littleEndian; family = "riscv"; }; s390 = { bits = 32; significantByte = bigEndian; family = "s390"; }; + s390x = { bits = 64; significantByte = bigEndian; family = "s390"; }; sparc = { bits = 32; significantByte = bigEndian; family = "sparc"; }; sparc64 = { bits = 64; significantByte = bigEndian; family = "sparc"; }; |