Skip to content

Commit 8aa793d

Browse files
committed
Use gold with musl. Seems like the bug has been resolved.
1 parent 07319e0 commit 8aa793d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/ghc/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ let self =
6767
, useLdGold ?
6868
# might be better check to see if cc is clang/llvm?
6969
# use gold as the linker on linux to improve link times
70-
# do not use it on musl due to a ld.gold bug. See: <https://sourceware.org/bugzilla/show_bug.cgi?id=22266>.
71-
(stdenv.targetPlatform.isLinux && !stdenv.targetPlatform.isAndroid && !stdenv.targetPlatform.isMusl)
70+
# do not use ld.gold 2.3 with musl due to a ld.gold bug.
71+
# See: <https://sourceware.org/bugzilla/show_bug.cgi?id=22266>.
72+
# Note that this bug was resolved in 2017.
73+
(stdenv.targetPlatform.isLinux && !stdenv.targetPlatform.isAndroid)
7274

7375
, ghc-version ? src-spec.version
7476
, ghc-version-date ? null

0 commit comments

Comments
 (0)