Skip to content

Commit 77dcd1e

Browse files
committed
Disable library-for-ghci for wasm
1 parent d68b241 commit 77dcd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ let
217217
# lld -r --whole-archive ... will _not_ drop lazy symbols. However the
218218
# --whole-archive flag needs to come _before_ the objects, it's applied in
219219
# sequence. The proper fix is thusly to add --while-archive to Cabal.
220-
(enableFeature (enableLibraryForGhci && !stdenv.hostPlatform.isGhcjs && !stdenv.hostPlatform.isAndroid) "library-for-ghci")
220+
(enableFeature (enableLibraryForGhci && !stdenv.hostPlatform.isGhcjs && !stdenv.hostPlatform.isWasm && !stdenv.hostPlatform.isAndroid) "library-for-ghci")
221221
] ++ lib.optionals (stdenv.hostPlatform.isMusl && (haskellLib.isExecutableType componentId)) [
222222
# These flags will make sure the resulting executable is statically linked.
223223
# If it uses other libraries it may be necessary for to add more

0 commit comments

Comments
 (0)