Skip to content

Commit 4c5bc35

Browse files
committed
apply the patch from c3b61fe
1 parent d5632d6 commit 4c5bc35

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

ghcide-test/data/multi-unit/a-1.0.0-inplace

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ base
1616
text
1717
-XHaskell98
1818
A
19+
+RTS
20+
-A32M
21+
-RTS

ghcide-test/data/multi-unit/c-1.0.0-inplace

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ a-1.0.0-inplace
1717
base
1818
-XHaskell98
1919
C
20+
+RTS
21+
-A32M

ghcide/session-loader/Development/IDE/Session/Ghc.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ setOptions haddockOpt cfp (ComponentOptions theOpts compRoot _) dflags rootDir =
230230
initMulti unitArgFiles =
231231
forM unitArgFiles $ \f -> do
232232
args <- liftIO $ expandResponse [f]
233-
initOne args
233+
-- The reponse files may contain arguments like "+RTS",
234+
-- and hie-bios doesn't expand the response files of @-unit@ arguments.
235+
-- Thus, we need to do the stripping here.
236+
initOne $ HieBios.removeRTS $ HieBios.removeVerbosityOpts args
234237
initOne this_opts = do
235238
(dflags', targets') <- addCmdOpts this_opts dflags
236239
let dflags'' =

0 commit comments

Comments
 (0)