File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ let self =
43
43
, hardeningDisable ? component . hardeningDisable
44
44
45
45
, enableStatic ? component . enableStatic
46
- , enableShared ? ghc . enableShared && component . enableShared && ! haskellLib . isCrossHost
46
+ , enableShared ? ghc . enableShared && component . enableShared && ( ! haskellLib . isCrossHost || stdenv . hostPlatform . isWasm )
47
47
, enableExecutableDynamic ? component . enableExecutableDynamic && ! stdenv . hostPlatform . isMusl
48
48
, enableDeadCodeElimination ? component . enableDeadCodeElimination
49
49
, writeHieFiles ? component . writeHieFiles
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ let self =
39
39
40
40
, # Whether to build dynamic libs for the standard library (on the target
41
41
# platform). Static libs are always built.
42
- enableShared ? ! haskell-nix . haskellLib . isCrossTarget
42
+ enableShared ? ! haskell-nix . haskellLib . isCrossTarget || stdenv . targetPlatform . isWasm
43
43
44
44
, enableLibraryProfiling ? true
45
45
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.targetPlatform.isWasm {
46
46
( { pkgs , ... } : {
47
47
testWrapper = [ "HOME=$(mktemp -d)" ( pkgs . pkgsBuildBuild . wasmtime + "/bin/wasmtime" ) ] ;
48
48
package-keys = [ "clock" ] ;
49
- packages . clock . configureFlags = [ "--ghc-option= -optc-Wno-int-conversion" ] ;
49
+ packages . clock . ghcOptions = [ "-optc-Wno-int-conversion" ] ;
50
50
} )
51
51
] ;
52
52
} ) ;
You can’t perform that action at this time.
0 commit comments