Skip to content

Commit d857ef7

Browse files
committed
Sigh, ffs. gold still broken with the NCG.
1 parent 5c4491b commit d857ef7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/ghc/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ let self =
7070
# do not use ld.gold 2.3 with musl due to a ld.gold bug.
7171
# See: <https://sourceware.org/bugzilla/show_bug.cgi?id=22266>.
7272
# Note that this bug was resolved in 2017.
73-
(stdenv.targetPlatform.isLinux && !stdenv.targetPlatform.isAndroid)
73+
( stdenv.targetPlatform.isLinux
74+
# don't use gold on android.
75+
&& !stdenv.targetPlatform.isAndroid
76+
# don't use gold with GHC's NCG with musl. Still seems to be
77+
# affected by 22266.
78+
&& !(!useLLVM && stdenv.targetPlatform.isMusl))
7479

7580
, ghc-version ? src-spec.version
7681
, ghc-version-date ? null

0 commit comments

Comments
 (0)