3
0
Fork 0
forked from mirrors/nixpkgs

[haskell/generic-builder] windows always has an active library

This commit is not really correct. The `hasActiveLibrary` check is wrong.
We can have an active library even if we do not ask for a static lirbary or
dynamic one; we can still have just a set of objet files and archives.
This commit is contained in:
Moritz Angermann 2018-07-15 16:27:26 +08:00 committed by Peter Simons
parent 10b923930c
commit e4a61c8b6e

View file

@ -112,7 +112,7 @@ let
main = defaultMain
'';
hasActiveLibrary = isLibrary && (enableStaticLibraries || enableSharedLibraries || enableLibraryProfiling);
hasActiveLibrary = isLibrary && (enableStaticLibraries || enableSharedLibraries || enableLibraryProfiling || hostPlatform.isWindows);
# We cannot enable -j<n> parallelism for libraries because GHC is far more
# likely to generate a non-determistic library ID in that case. Further