-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-prof GHC flag should not to be used with --ghc-options stack flag #1015
Comments
To share this comment from the cabal ticket for the same report:
|
Commit pushed to master which will error out early, thanks for the report! |
Thank you. It isn't clear to me to what extent there will be a consistency between cabal and stack flags going forward, though in this case there is additional information about cabal's recent change in handling profile flags (see #2827):
If I understand correctly, then cabal's handling of |
Stack just uses Cabal for building under the surface, and passes On Thu, Sep 24, 2015 at 5:52 PM, Rob Stewart [email protected]
|
I use this command now to build
Then when i add |
@flip111 I don't have the link handy to the discussion, but this has been discussed before. You need to do it like this - |
|
ok don't know what it was .. after a |
the actual flags are: |
When a user wants to run with cost modelling profiling enabled, they need to use
+RTS -p
. For this to work and when invoking GHC directly, the user types:However, if they are using stack, they should type:
It might not be clear that when stack is used to invoke GHC,
-prof
should not be used in--ghc-options
. If it is included, then they are likely to see compiler error messages relating to p_dyn, e.g.I initially raised this as a GHC documentation bug, but there it has been suggested that instead, stack should throw an error or at least print a warning that
-prof
should not appear in the string passed to--ghc-options
.This is the GHC ticket, that I'd like to close once the corresponding stack and cabal tickets are discussed: https://ghc.haskell.org/trac/ghc/ticket/10894
This is the mirrored cabal ticket: haskell/cabal#2827
The text was updated successfully, but these errors were encountered: