Commit 2eb931b1 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Use showCommandForUser when showing tracing commands

parent e2792361
......@@ -66,7 +66,7 @@ import Foreign
import Foreign.C.String
import System.Process ( runInteractiveProcess, getProcessExitCode )
import System.Process
import Control.Concurrent
import FastString
import SrcLoc ( SrcLoc, mkSrcLoc, noSrcSpan, mkSrcSpan )
......@@ -597,7 +597,12 @@ runSomethingFiltered
runSomethingFiltered dflags filter_fn phase_name pgm args mb_env = do
let real_args = filter notNull (map showOpt args)
traceCmd dflags phase_name (unwords (pgm:real_args)) $ do
#if __GLASGOW_HASKELL__ >= 701
cmdLine = showCommandForUser pgm real_args
cmdLine = unwords (pgm:real_args)
traceCmd dflags phase_name cmdLine $ do
(exit_code, doesn'tExist) <-
IO.catch (do
rc <- builderMainLoop dflags filter_fn pgm real_args mb_env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment