Permalink
Browse files

Add config file for running with GHC 7.4

  • Loading branch information...
1 parent 3206ccd commit eebdb6991c532efdb7ecbb0c10c54e56b9745d0d @dmpots committed Dec 19, 2011
Showing with 33 additions and 0 deletions.
  1. +33 −0 Ghc74_Config.hs
View
@@ -0,0 +1,33 @@
+module Ghc74_Config(
+ config
+)
+where
+import Fibon.Run.Config
+import qualified GhcHead_Config as Ghc
+
+config :: RunConfig
+config = Ghc.config {
+ configId = "ghc-7.4"
+ , configBuilder = build
+ }
+
+standardGHC :: FilePath
+standardGHC = "/Research/git/ghc-7.4/inplace/bin"
+
+build :: ConfigBuilder
+build ConfigTuneDefault ConfigBenchDefault = do
+ setTimeout $ Limit 0 30 0
+ append ConfigureFlags "--ghc-option=-rtsopts"
+
+ -- Use ghc from standard location off of HOME otherwise
+ mbHome <- getEnv "HOME"
+ maybe (error "Unable to get HOME path")
+ (\h -> useGhcInPlaceDir (h ++ standardGHC))
+ mbHome
+
+ -- Setup stats collection
+ collectExtraStatsFrom "ghc.stats"
+ append RunFlags "+RTS -tghc.stats --machine-readable -RTS"
+
+
+build t b = (configBuilder Ghc.config) t b

0 comments on commit eebdb69

Please sign in to comment.