on iko/ghcjs-patch-master help sign in
Add enableLibraryProfiling for ghc (#677)
commit5abaf477ea9f1c96874b09b44201ec269ca3c79f authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateFri 12 Jun 2020, 14:38 (6 years ago) parent1671a74
1 file changed+4
compiler/ghc/default.nix+4
compiler/ghc/default.nix+4
@@ -35,6 +35,8 @@
3535 # platform). Static libs are always built.
3636 enableShared ? !haskell-nix.haskellLib.isCrossTarget
3737
38+, enableLibraryProfiling ? true
39+
3840, # Whetherto build terminfo. Musl fails to build terminfo as ncurses seems to be linked to glibc
3941 enableTerminfo ? !stdenv.targetPlatform.isWindows && !stdenv.targetPlatform.isMusl
4042
@@ -110,6 +112,8 @@ let
110112 # profiling.
111113 + stdenv.lib.optionalString targetPlatform.isWindows ''
112114 SplitSections = NO
115+ '' + stdenv.lib.optionalString (!enableLibraryProfiling) ''
116+ BUILD_PROF_LIBS = NO
113117 '';
114118
115119 # Splicer will pull out correct variations