Skip to content

Commit 74026f9

Browse files
committed
Add i686 cross
1 parent 3623f1b commit 74026f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ in {
585585
then "arm"
586586
else if hostPlatform.isAarch64
587587
then "aarch64"
588+
else if hostPlatform.isi686
589+
then "i386"
588590
else abort "Don't know which QEMU to use for hostPlatform ${hostPlatform.config}. Please provide qemuSuffix";
589591

590592
# How to run ldd when checking for static linking

overlays/linux-cross.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let
3131
# of nix build envs.
3232

3333
# we want this to hold only for arm (32 and 64bit) for now.
34-
isLinuxCross = haskellLib.isCrossHost && hostPlatform.isLinux && (hostPlatform.isAarch32 || hostPlatform.isAarch64);
34+
isLinuxCross = haskellLib.isCrossHost && hostPlatform.isLinux && (hostPlatform.isAarch32 || hostPlatform.isAarch64 || hostPlatform.isi686);
3535
qemuIservWrapperScript = enableProfiling:
3636
let
3737
interpreter =

0 commit comments

Comments
 (0)