-
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
Can't display -ddump-splices result. #4225
Comments
It's necessary to grab information available in the HI dump files, like |
Thanks @snoyberg What about providing $ find $(stack path --dist-dir) -name "*.dump-*"
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Test.dump-simpl
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Ins.dump-stg
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Lib.dump-stg
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Ins.dump-simpl
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Lib.dump-simpl
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Test.dump-stg
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/src/Lib.dump-splices
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/autogen/Paths_th_example.dump-stg
.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/autogen/Paths_th_example.dump-simpl if these file move to the specified |
I'd be OK with such a PR. It may be simpler to copy the files from where they're currently output by GHC to a new location, instead of trying to convince GHC to use a new directory and then parse it. Are you interested in taking a stab at a PR? |
Add the ddump-dir option/config value #4225
$ stack build --ghc-options='-ddump-splices'
I want to display on the standard output, not to save to a file.
Question
Why does the extraBuildOptions function specify the
" -ddump-hi -ddump-to-file"
option by default?If remove this option, I think it will work as expected.
Stack version
The text was updated successfully, but these errors were encountered: