-
Notifications
You must be signed in to change notification settings - Fork 701
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
Optimizations specified on the command line with -O should override the .cabal file #2443
Comments
Tend to agree, command-line arguments are a more direct assertion of intent than config files. (+1) |
This should be true of all the command-line arguments. I suspect that
|
I agree, the command line should override what is specified in the .cabal file. So e.g. people can have -O2 in the .cabal file but |
We've looked into it during Zurihac with @kosmikus and it seems that the options are passed to GHC in correct order ie. the command line options comes after the .cabal file one. Furthermore GHC seems to behave according to the last -O option specified. Has this been fixed in the meantime? |
Have you also checked the behavior with respect to the cabal.config file? It's possible that's what the original poster meant (and we should check it while we're at it). |
I checked the problem as stated in the title ("Optimizations specified on the command line with -O should override the .cabal file"), and it no longer exists: command-line As for behavior w.r.t. the cabal |
I agree that we should call success and close. I seem to remember |
Currently -O ghc-options specified in the .cabal file override anything specified on the command line. I believe this is backwards. The .cabal file should be used when nothing is specified on the command line, but the command line should override it. This is necessary for a proper solution to #2442.
The text was updated successfully, but these errors were encountered: