Commit e331392e authored by thomie's avatar thomie

Fix error msg: ghci can't be used with -prof or -static (#10936)

Reviewed by: austin

Differential Revision: https://phabricator.haskell.org/D1314
parent 80602af0
......@@ -330,7 +330,7 @@ checkOptions mode dflags srcs objs = do
when ((filter (not . wayRTSOnly) (ways dflags) /= interpWays)
&& isInterpretiveMode mode) $
do throwGhcException (UsageError
"--interactive can't be used with -prof.")
"--interactive can't be used with -prof or -static.")
-- -ohi sanity check
if (isJust (outputHi dflags) &&
(isCompManagerMode mode || srcs `lengthExceeds` 1))
......
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