Temporarily fight off build bogons on OS X
authorAustin Seipp <austin@well-typed.com>
Mon, 31 Mar 2014 11:47:44 +0000 (06:47 -0500)
committerAustin Seipp <austin@well-typed.com>
Mon, 31 Mar 2014 11:47:47 +0000 (06:47 -0500)
Right now there's a bug with Clang that prevents 'cabal haddock' from
working nicely. But there's an easy fix for now.

Signed-off-by: Austin Seipp <austin@well-typed.com>
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 72a2f24..dab9050 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -1350,7 +1350,7 @@ validate_build_xhtml:
        cd libraries/xhtml && ./Setup configure --with-ghc="$(BINDIST_PREFIX)/bin/ghc" $(BINDIST_HADDOCK_FLAG) $(BINDIST_LIBRARY_FLAGS) --global --builddir=dist-bindist --prefix="$(BINDIST_PREFIX)"
        cd libraries/xhtml && ./Setup build   --builddir=dist-bindist
 ifeq "$(HADDOCK_DOCS)" "YES"
-       cd libraries/xhtml && ./Setup haddock --builddir=dist-bindist
+       cd libraries/xhtml && ./Setup haddock --ghc-options=-optP-P --builddir=dist-bindist
 endif
        cd libraries/xhtml && ./Setup install --builddir=dist-bindist
        cd libraries/xhtml && ./Setup clean   --builddir=dist-bindist