Skip to content

Commit

Permalink
Fix splitRTSArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 committed Sep 5, 2024
1 parent a4d1568 commit 340b7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/src/Distribution/Simple/Program/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,8 @@ splitRTSArgs args =
case arg of
"+RTS" -> addRTSArg arg $ go True rest
"-RTS" -> addRTSArg arg $ go False rest
"--RTS" -> (arg : rest, [])
"--" -> (arg : rest, [])
"--RTS" -> ([arg], rest)
"--" -> ([], arg : rest)
_ ->
if isRTSArg
then addRTSArg arg $ go isRTSArg rest
Expand Down

0 comments on commit 340b7f0

Please sign in to comment.