diff options
author | Divam <dfordivam@gmail.com> | 2020-07-05 21:27:40 +0900 |
---|---|---|
committer | Divam <dfordivam@gmail.com> | 2020-08-05 20:18:17 +0900 |
commit | fee55e2bb1e9f471bc8342a13ca062c710d39f41 (patch) | |
tree | 0ddc1699ced547cb8e11a6dfc38f5f41891096af /pkgs/development/haskell-modules/generic-builder.nix | |
parent | 95a5a19658e30b77cd140ebe0c5fbb100f603b3e (diff) | |
download | nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar.gz nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar.bz2 nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar.lz nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar.xz nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.tar.zst nixlib-fee55e2bb1e9f471bc8342a13ca062c710d39f41.zip |
Disable static lib for Haskell wasm libs
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r-- | pkgs/development/haskell-modules/generic-builder.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 20fa2c840629..770c66d4c85b 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -35,7 +35,7 @@ in , enableSharedExecutables ? false , enableSharedLibraries ? (ghc.enableShared or false) , enableDeadCodeElimination ? (!stdenv.isDarwin) # TODO: use -dead_strip for darwin -, enableStaticLibraries ? !stdenv.hostPlatform.isWindows +, enableStaticLibraries ? !(stdenv.hostPlatform.isWindows or stdenv.hostPlatform.isWasm) , enableHsc2hsViaAsm ? stdenv.hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4" , extraLibraries ? [], librarySystemDepends ? [], executableSystemDepends ? [] # On macOS, statically linking against system frameworks is not supported; @@ -90,6 +90,7 @@ assert editedCabalFile != null -> revision != null; # --enable-static does not work on windows. This is a bug in GHC. # --enable-static will pass -staticlib to ghc, which only works for mach-o and elf. assert stdenv.hostPlatform.isWindows -> enableStaticLibraries == false; +assert stdenv.hostPlatform.isWasm -> enableStaticLibraries == false; let |