@@ -195,10 +195,10 @@ with haskellLib;
195195 # In most cases we do not want to treat musl as a cross compiler.
196196 # For instance when building ghc we want to include ghci.
197197 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);
199199 # This is the same as isCrossHost but for use when building ghc itself
200200 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);
202202
203203 # Takes a version number or attr set of arguments (for cabalProject)
204204 # and conversios it to an attr set of argments. This allows