Permalink
Browse files

workaround for ghci fragility in reusing objects compiled with ghc

  • Loading branch information...
1 parent b547b37 commit ea5f0fca972758ffc86fd251676b7757d9c3cb18 @joeyh committed Oct 18, 2012
Showing with 9 additions and 3 deletions.
  1. +0 −3 .ghci
  2. +4 −0 Makefile
  3. +5 −0 ghci
View
3 .ghci
@@ -1,4 +1 @@
--- make ghci use precompiled modules, and C library
-:set -outputdir=tmp
-:set -IUtility
:load Common
View
4 Makefile
@@ -221,4 +221,8 @@ osxapp:
rm -f tmp/git-annex.dmg.bz2
bzip2 tmp/git-annex.dmg
+# used by ./ghci
+getflags:
+ @echo $(ALLFLAGS)
+
.PHONY: $(bins) test install
View
5 ghci
@@ -0,0 +1,5 @@
+#!/bin/sh
+# This runs ghci with the same flags used when compiling with ghc.
+# Certian flags need to be the same in order for ghci to reuse compiled
+# objects.
+ghci $(make getflags) $@

0 comments on commit ea5f0fc

Please sign in to comment.