Skip to content

Commit 5b078ca

Browse files
committed
fix ghcjs
1 parent 13c50f1 commit 5b078ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/ghc/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
422422
export CXX="${targetCC}/bin/em++"
423423
export LD="${targetCC}/bin/emcc"
424424
'' + (
425-
# Including AR and RANLIB here breaks tests.js-template-haskell for GHC 9.6
425+
# Including AR and RANLIB here breaks tests.js-template-haskell for GHC <9.12
426426
# `LLVM ERROR: malformed uleb128, extends past end`
427-
if builtins.compareVersions ghc-version "9.8" >= 0
427+
if builtins.compareVersions ghc-version "9.12" >= 0
428428
then ''
429429
export AR="${targetCC}/bin/emar"
430430
export NM="${targetCC}/share/emscripten/emnm"

0 commit comments

Comments
 (0)