summaryrefslogtreecommitdiff
path: root/ghc/Main.hs
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-10-07 12:03:04 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-10-10 15:20:03 +0200
commite331392e1891941916ee8e508a127ec7fec33d3d (patch)
tree4690aac70f356c72a8192c5e279ed1ab46ff8b41 /ghc/Main.hs
parent80602af0ad8ae223d294483163fd471d80c2ccd9 (diff)
downloadhaskell-e331392e1891941916ee8e508a127ec7fec33d3d.tar.gz
Fix error msg: ghci can't be used with -prof or -static (#10936)
Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D1314
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r--ghc/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index 7ca7481fc3..9fb0718f13 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -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))