haskell.generic-builder: disable library profiling on wasm

Template Haskell in profiled wasm builds requires profiled dynamic
objects, which Cabal does not build by default.
This commit is contained in:
İlkecan Bozdoğan
2026-08-15 18:53:31 +03:00
parent 0b71a82bcc
commit fdabcb8ae9

View File

@@ -122,7 +122,8 @@ in
doHaddockQuickjump ? doHoogle,
doInstallIntermediates ? false,
editedCabalFile ? null,
enableLibraryProfiling ? !stdenv.hostPlatform.isGhcjs,
# Cabal does not build the profiled dynamic objects required by wasm TH.
enableLibraryProfiling ? !stdenv.hostPlatform.isGhcjs && !stdenv.hostPlatform.isWasm,
enableExecutableProfiling ? false,
profilingDetail ? "exported-functions",
# TODO enable shared libs for cross-compiling