diff options
author | Carrie Xu <carrie.xmy@gmail.com> | 2021-10-06 23:02:04 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-01 03:08:46 -0500 |
commit | 7acb945d443e26c7e51850c9c51321b0a5a7978a (patch) | |
tree | 7ee62d80c789f3a801c8314d1b1252c1a9ca186c /compiler/GHC/Driver/Pipeline.hs | |
parent | 87bd9a675441513871de55c3cca47a7bb3341639 (diff) | |
download | haskell-7acb945d443e26c7e51850c9c51321b0a5a7978a.tar.gz |
Dump non-module specific info to file #20316
- Change the dumpPrefix to FilePath, and default to non-module
- Add dot to seperate dump-file-prefix and suffix
- Modify user guide to introduce how dump files are named
- This commit does not affect Ghci dump file naming.
See also #17500
Diffstat (limited to 'compiler/GHC/Driver/Pipeline.hs')
-rw-r--r-- | compiler/GHC/Driver/Pipeline.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Pipeline.hs b/compiler/GHC/Driver/Pipeline.hs index c758202268..8645184b1f 100644 --- a/compiler/GHC/Driver/Pipeline.hs +++ b/compiler/GHC/Driver/Pipeline.hs @@ -634,7 +634,7 @@ mkPipeEnv stop_phase input_fn output = setDumpPrefix :: PipeEnv -> HscEnv -> HscEnv setDumpPrefix pipe_env hsc_env = - hscUpdateFlags (\dflags -> dflags { dumpPrefix = Just (src_basename pipe_env ++ ".")}) hsc_env + hscUpdateFlags (\dflags -> dflags { dumpPrefix = src_basename pipe_env ++ "."}) hsc_env {- The Pipelines -} |