From d8b29623e9021325180af7acf70a2c49215f61b4 Mon Sep 17 00:00:00 2001 From: Gabriella Gonzalez Date: Tue, 24 Oct 2023 16:13:27 -0700 Subject: [PATCH] Also support `--` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … as suggested by @geekosaur --- Cabal/src/Distribution/Simple/Program/GHC.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Cabal/src/Distribution/Simple/Program/GHC.hs b/Cabal/src/Distribution/Simple/Program/GHC.hs index 06c71ab88f6..0c97fe511ae 100644 --- a/Cabal/src/Distribution/Simple/Program/GHC.hs +++ b/Cabal/src/Distribution/Simple/Program/GHC.hs @@ -685,6 +685,7 @@ runGHCWithResponseFile workDir fileNameTemplate encoding verbosity ghcProg comp "+RTS" -> (True, responseFileArgs, arg : otherArgs) "-RTS" -> (False, responseFileArgs, arg : otherArgs) "--RTS" -> (False, args, [arg]) + "--" -> (False, arg : args, []) _ | isRTSOption -> (isRTSOption, responseFileArgs, arg : otherArgs) | otherwise -> (isRTSOption, arg : responseFileArgs, otherArgs)