workaround for ghci fragility in reusing objects compiled with ghc

This commit is contained in:
Joey Hess 2012-10-17 23:04:43 -04:00
parent b547b3777e
commit ea5f0fca97
3 changed files with 9 additions and 3 deletions

3
.ghci
View file

@ -1,4 +1 @@
-- make ghci use precompiled modules, and C library
:set -outputdir=tmp
:set -IUtility
:load Common

View file

@ -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

5
ghci Executable file
View file

@ -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) $@