[Git][ghc/ghc][wip/ci-docs] debug

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Wed Feb 28 11:27:24 UTC 2024



Matthew Pickering pushed to branch wip/ci-docs at Glasgow Haskell Compiler / GHC


Commits:
3c0c8572 by Matthew Pickering at 2024-02-28T11:27:17+00:00
debug

- - - - -


1 changed file:

- hadrian/src/Builder.hs


Changes:

=====================================
hadrian/src/Builder.hs
=====================================
@@ -46,6 +46,7 @@ import GHC.ResponseFile
 import GHC.Toolchain (Target(..))
 import qualified GHC.Toolchain as Toolchain
 import GHC.Toolchain.Program
+import System.Environment
 
 -- | C compiler can be used in two different modes:
 -- * Compile or preprocess a source file.
@@ -380,6 +381,7 @@ instance H.Builder Builder where
                   let unpack = fromMaybe . error $ "Cannot find path to builder "
                                 ++ quote "sphinx-build"  ++ " Did you skip configure?"
                   path <- unpack <$> lookupValue configFile "sphinx-build"
+                  liftIO (lookupEnv "PYTHONPATH" >>= print)
                   cmd' ["perl", path] buildArgs buildOptions
 
                 -- RunTest produces a very large amount of (colorised) output;



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3c0c85723978355511c1b73492a1d31778227914

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3c0c85723978355511c1b73492a1d31778227914
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240228/500b735a/attachment.html>


More information about the ghc-commits mailing list