haskell: Inline static overlay

We don't force `enableStaticLibraries` for Windows or WASM because it
will just fail an assertion.
This commit is contained in:
John Ericson
2021-01-11 03:17:29 +00:00
parent 178ec8974f
commit a52f9a18bf
2 changed files with 1 additions and 16 deletions
@@ -33,7 +33,7 @@ in
, profilingDetail ? "exported-functions"
# TODO enable shared libs for cross-compiling
, enableSharedExecutables ? false
, enableSharedLibraries ? (ghc.enableShared or false)
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic && (ghc.enableShared or false)
, enableDeadCodeElimination ? (!stdenv.isDarwin) # TODO: use -dead_strip for darwin
, enableStaticLibraries ? !(stdenv.hostPlatform.isWindows or stdenv.hostPlatform.isWasm)
, enableHsc2hsViaAsm ? stdenv.hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4"