Skip to content

Commit fc060cf

Browse files
authored
Unbreak aarch64-linux-musl-cross
When compiling linux -> linux, but different arch, we _are_ building a cross compiler. Only for same arch we can pretend it's a stage2 compiler.
1 parent 4d0b524 commit fc060cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/ghc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ stdenv.mkDerivation (rec {
754754
--replace 'dynamic-library-dirs:' 'dynamic-library-dirs: ${libcxx}/lib ${libcxxabi}/lib'
755755
find . -name 'system*.conf*'
756756
cat mk/system-cxx-std-lib-1.0.conf
757-
'' + lib.optionalString (installStage1 && stdenv.targetPlatform.isMusl) ''
757+
'' + lib.optionalString (installStage1 && !haskell-nix.haskellLib.isCrossTarget && stdenv.targetPlatform.isMusl) ''
758758
substituteInPlace hadrian/cfg/system.config \
759759
--replace 'cross-compiling = YES' \
760760
'cross-compiling = NO'

0 commit comments

Comments
 (0)