You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--enable-profiling not recognized by new-build? #3442
It's possible you're seeing some more subtle bug, e.g. #3485. Hard to say without a reproducing case, but maybe wait till we fix that one and see if that fixes your case.
@edsko minor nitpick: ghc-prof-options should be used to override the default prof detail level, and even better yet, there's
profiling-detail: all-functions and
library-profiling-detail: all-functions
which are supposed to work in cabal.project files (in pkg.cabal files we can only use ghc-prof-options), where the levels: default, none, exported-functions, toplevel-functions, all-functions map to the corresponding -fprof-auto* flags...
Activity
hvr commentedon May 19, 2016
cabal new-configure --enable-executable-profilingresults incabal.project.localcontaining...doesn't that work?
edsko commentedon May 19, 2016
Doesn't appear to, no.
ezyang commentedon Sep 6, 2016
It's possible you're seeing some more subtle bug, e.g. #3485. Hard to say without a reproducing case, but maybe wait till we fix that one and see if that fixes your case.
ezyang commentedon Sep 6, 2016
Please add
constraints: Cabal >= 1.24tocabal.projectand tell us if you still see this problem.edsko commentedon Sep 19, 2016
With
cabal-install-headfrom @hvr (1.25+git20160918.1.c9e046e~xenial), this config works:hvr commentedon Sep 19, 2016
@edsko minor nitpick:
ghc-prof-optionsshould be used to override the default prof detail level, and even better yet, there'sprofiling-detail: all-functionsandlibrary-profiling-detail: all-functionswhich are supposed to work in cabal.project files (in pkg.cabal files we can only use
ghc-prof-options), where the levels: default, none, exported-functions, toplevel-functions, all-functions map to the corresponding-fprof-auto*flags...ezyang commentedon Sep 19, 2016
OK @edsko, I think that confirms that this is a dupe of #3485.
@hvr, this clearly seems like a documentation failing.
ghc-prof-optionsis not documented. Can we fix the docs.23Skidoo commentedon Sep 21, 2016
Closing in favour of #3790, which has now been fixed. Please reopen if disagree.
ezyang commentedon Sep 28, 2016
Also note that
executable-profiling: Trueis unnecessary;profilingwill automatically enable it.ezyang commentedon Sep 28, 2016
Also, to be clear,
ghc-prof-optionsis NOT supported incabal.projectformat. So you can only put the flags inghc-optionsor use Cabal's built-ins.