Repository navigation
Make debug-info >= 1 imply library/executable-stripping: False - #6111
Merged
Merged
Conversation
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.
23Skidoo
approved these changes
Jun 27, 2019
| NoDebugInfo -> return defaultStrip | ||
| _ -> case f cfg of | ||
| Flag True -> do | ||
| warn verbosity $ "Setting debug-info implies " |
Member
There was a problem hiding this comment.
Won't this cause spurious warnings when using cabal-install? Stripping is enabled by default.
Collaborator
Author
There was a problem hiding this comment.
If you notice in the PR I change the default value to NoFlag. So if Flag True, it means the user explicitly set it.
I test it out by modifying the cabal.project file for each of the configurations and it behaved as expected.
Member
|
Merged, thanks! |
Member
|
Cherry-picked to the |
23Skidoo
added a commit
that referenced
this pull request
Jul 2, 2019
Make `debug-info` >= 1 imply library/executable-stripping: False (cherry picked from commit ed3ae13)
DanielG
pushed a commit
to DanielG/cabal
that referenced
this pull request
Aug 17, 2019
Make `debug-info` >= 1 imply library/executable-stripping: False (cherry picked from commit ed3ae13)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2702
If you enable
debug-infothen you also have to stop the libraries andexecutables being stripped as otherwise the debug symbols are removed.
Please include the following checklist in your PR:
[ci skip]is used to avoid triggering the build bots.Please also shortly describe how you tested your change. Bonus points for added tests!