[Git][ghc/ghc][wip/ghc-toolchain-fixes] debug trace
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Tue Aug 8 12:18:33 UTC 2023
Matthew Pickering pushed to branch wip/ghc-toolchain-fixes at Glasgow Haskell Compiler / GHC
Commits:
57d44cf3 by Matthew Pickering at 2023-08-08T13:18:24+01:00
debug trace
- - - - -
1 changed file:
- utils/ghc-toolchain/src/GHC/Toolchain/Tools/Cpp.hs
Changes:
=====================================
utils/ghc-toolchain/src/GHC/Toolchain/Tools/Cpp.hs
=====================================
@@ -38,6 +38,8 @@ findHsCppArgs :: Program -> M [String]
findHsCppArgs cpp = do
(_, stdout0, stderr0) <- readProgram cpp ["-x", "c", "/dev/null", "-dM", "-E"]
+ liftIO $ print stdout0
+ liftIO $ print stderr0
if "__clang__" `isInfixOf` stdout0 || "__clang__" `isInfixOf` stderr0
then return ["-undef", "-traditional", "-Wno-invalid-pp-token", "-Wno-unicode", "-Wno-trigraphs"]
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/57d44cf3f1acb695444c38d79162822f278f1946
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/57d44cf3f1acb695444c38d79162822f278f1946
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/20230808/6b72a7a6/attachment.html>
More information about the ghc-commits
mailing list