Skip to content

Commit c8aad10

Browse files
committed
Fix for ghcjs on macOS
1 parent 0e46928 commit c8aad10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builder/comp-builder.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ let
197197
"--with-gcc=${pkgsBuildBuild.emscripten}/bin/emcc"
198198
"--with-ld=${pkgsBuildBuild.emscripten}/bin/emcc"
199199
]
200+
++ lib.optionals (stdenv.hostPlatform.isGhcjs && stdenv.buildPlatform.isDarwin) [
201+
"--ar-options=--format=gnu" # Avoid `--format=darwin` it can cause `section too large` errors
202+
]
200203
++ [ # other flags
201204
(disableFeature dontStrip "executable-stripping")
202205
(disableFeature dontStrip "library-stripping")

0 commit comments

Comments
 (0)