[Git][ghc/ghc][wip/hadrian-windows-bindist-cross] configure: Error when ghc-toolchain fails to compile

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Aug 24 15:18:27 UTC 2023



Matthew Pickering pushed to branch wip/hadrian-windows-bindist-cross at Glasgow Haskell Compiler / GHC


Commits:
c2a7c4fc by Matthew Pickering at 2023-08-24T16:17:48+01:00
configure: Error when ghc-toolchain fails to compile

This is a small QOL change as if you are working on ghc-toolchain and it
fails to compile then configure will continue and can give you outdated
results.

- - - - -


1 changed file:

- m4/ghc_toolchain.m4


Changes:

=====================================
m4/ghc_toolchain.m4
=====================================
@@ -148,7 +148,7 @@ AC_DEFUN([FIND_GHC_TOOLCHAIN_BIN],[
                 -ilibraries/ghc-platform/src -iutils/ghc-toolchain/src \
                 -XNoImplicitPrelude \
                 -odir actmp-ghc-toolchain -hidir actmp-ghc-toolchain \
-                utils/ghc-toolchain/exe/Main.hs -o acghc-toolchain
+                utils/ghc-toolchain/exe/Main.hs -o acghc-toolchain || AC_MSG_ERROR([Could not compile ghc-toolchain])
             GHC_TOOLCHAIN_BIN="./acghc-toolchain"
             ;;
         *)



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c2a7c4fc845ef9b9f4edcb23a8f3d442437463e1
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/20230824/1e4a2eaf/attachment.html>


More information about the ghc-commits mailing list