-
Notifications
You must be signed in to change notification settings - Fork 697
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
Add support for -g
option
#2702
Comments
i think you can add that to your ~/.cabal/config file as a default ghc options flag |
OK, I'd still like the second part to happen:
It's extremely nice to get |
Also, I'd say that |
Yes, makes sense. |
Just to point out that |
@mpickering see also this TODO left here https://www.haskell.org/cabal/users-guide/nix-local-build.html#cfg-field-executable-stripping |
@mpickering Good place to start is running I think that normally one will want to either enable |
@23Skidoo It seems the natural place to implement this is |
Unless there is a similar warning I can look at to see where to implement this check it seems like a lot of untangling to implement the logic where a warning happens if the user has explicitly set the option. |
Fixes haskell#2702 If you enable `debug-info` then you also have to stop the libraries and executables being stripped as otherwise the debug symbols are removed.
Fixes haskell#2702 If you enable `debug-info` then you also have to stop the libraries and executables being stripped as otherwise the debug symbols are removed.
Is this patch actually a good idea? It was only on |
You mean, if you have |
Yes if you set |
Shouldn't this mean that installed exes should have debug info? Perhaps we can add a better warning (at |
Fixes haskell#2702 If you enable `debug-info` then you also have to stop the libraries and executables being stripped as otherwise the debug symbols are removed.
-g
builds libraries with DWARF symbols, but it's quite awkward to use it:I think we should have a flag that automatically does the above.
Moreover, I'd also like a flag that stores the downloaded source, so that the debug symbols will refer to sources which still exist.
The text was updated successfully, but these errors were encountered: