[Git][ghc/ghc][wip/mp/14996] try again
Matthew Pickering pushed to branch wip/mp/14996 at Glasgow Haskell Compiler / GHC Commits: 047358cb by Matthew Pickering at 2025-11-11T09:34:50+00:00 try again - - - - - 1 changed file: - hadrian/src/Builder.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -44,6 +44,7 @@ import GHC.ResponseFile import GHC.Toolchain (Target(..)) import qualified GHC.Toolchain as Toolchain import GHC.Toolchain.Program +import Debug.Trace -- | C compiler can be used in two different modes: -- * Compile or preprocess a source file. @@ -399,9 +400,17 @@ runHaddock haddockPath flagArgs fileInputs = withTempFile $ \tmp -> do runGhcWithResponse :: FilePath -> [String] -> [FilePath] -> Action () runGhcWithResponse ghcPath flagArgs fileInputs = withTempFile $ \tmp -> do + + let (hs_files, normal_args) = partition (isSuffixOf ".hs") flagArgs writeFile' tmp $ escapeArgs (fileInputs) - cmd [ghcPath] flagArgs ('@' : tmp) + traceM (unlines $ hs_files) + traceM (unlines $ fileInputs) + + writeFile' tmp $ escapeArgs fileInputs + + -- Cannot put everything into a response file due to #26560 + cmd [ghcPath] normal_args ('@' : tmp) -- TODO: Some builders are required only on certain platforms. For example, View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/047358cb9b7f22cd4b33e04ac802c0ae... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/047358cb9b7f22cd4b33e04ac802c0ae... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Matthew Pickering (@mpickering)