From 7acb945d443e26c7e51850c9c51321b0a5a7978a Mon Sep 17 00:00:00 2001 From: Carrie Xu Date: Wed, 6 Oct 2021 23:02:04 +0800 Subject: 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 --- compiler/GHC/Driver/Pipeline.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/GHC/Driver/Pipeline.hs') 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 -} -- cgit v1.2.1