on iko/ghcjs-patch-master help sign in
Stage2 muslc only on x86 (#582)
0b1381bMoritz Angermann
lib/default.nix+2−2
@@ -195,10 +195,10 @@ with haskellLib;
195 # In most cases we do not want to treat musl as a cross compiler.
195 # In most cases we do not want to treat musl as a cross compiler.
196 # For instance when building ghc we want to include ghci.
196 # For instance when building ghc we want to include ghci.
197 isCrossHost = stdenv.hostPlatform != stdenv.buildPlatform
197 isCrossHost = stdenv.hostPlatform != stdenv.buildPlatform
198− && !(stdenv.buildPlatform.isLinux && stdenv.hostPlatform.isMusl);
198+ && !(stdenv.buildPlatform.isLinux && stdenv.hostPlatform.isMusl && stdenv.buildPlatform.isx86 && stdenv.hostPlatform.isx86);
199 # This is the same as isCrossHost but for use when building ghc itself
199 # This is the same as isCrossHost but for use when building ghc itself
200 isCrossTarget = stdenv.targetPlatform != stdenv.hostPlatform
200 isCrossTarget = stdenv.targetPlatform != stdenv.hostPlatform
201− && !(stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl);
201+ && !(stdenv.hostPlatform.isLinux && stdenv.targetPlatform.isMusl && stdenv.hostPlatform.isx86 && stdenv.targetPlatform.isx86);
202
202
203 # Takes a version number or attr set of arguments (for cabalProject)
203 # Takes a version number or attr set of arguments (for cabalProject)
204 # and conversios it to an attr set of argments. This allows
204 # and conversios it to an attr set of argments. This allows