Compile with -fno-method-sharing for ghc < 6.13
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 19 Feb 2010 08:38:33 +0000 (08:38 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 19 Feb 2010 08:38:33 +0000 (08:38 +0000)
This turns out to have a lot of beneficial effects on the code.

vector.cabal

index 633b161..65cd6c1 100644 (file)
@@ -107,7 +107,7 @@ Library
   Build-Depends: base >= 2 && < 5, ghc >= 6.9, primitive >= 0.2 && < 0.3
 
   if impl(ghc<6.13)
-    Ghc-Options: -finline-if-enough-args
+    Ghc-Options: -finline-if-enough-args -fno-method-sharing
   
   Ghc-Options: -O2