Add -fno-omit-interface-pragmas to SrcLoc, to work around Trac #5252
authorSimon Peyton Jones <simonpj@microsoft.com>
Sat, 11 Jun 2011 13:12:43 +0000 (14:12 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Sat, 11 Jun 2011 13:12:43 +0000 (14:12 +0100)
We have to do this until the earliest bootstrap compiler
has fixed #5252.  It's no big deal; it just means that
SrcLoc.hi has lots of stuff even when compiling GHC without -O.
Lacking this, you get

  (GHC version 7.0.3 for i386-unknown-mingw32):
reboxProduct: not a product ghc-7.1:SrcLoc.RealSrcLoc{tc r8J}

compiler/basicTypes/SrcLoc.lhs

index 22ab915..f15d0da 100644 (file)
@@ -3,6 +3,12 @@
 %
 
 \begin{code}
+{-# OPTIONS_GHC -fno-omit-interface-pragmas #-}
+   -- Workaround for Trac #5252 crashes the bootstrap compiler without -O
+   -- When the earliest compiler we want to boostrap with is
+   -- GHC 7.2, we can make RealSrcLoc properly abstract
+
+
 -- | This module contains types that relate to the positions of things
 -- in source files, and allow tagging of those things with locations
 module SrcLoc (