workaround for ghci fragility in reusing objects compiled with ghc
This commit is contained in:
parent
b547b3777e
commit
ea5f0fca97
3 changed files with 9 additions and 3 deletions
3
.ghci
3
.ghci
|
@ -1,4 +1 @@
|
|||
-- make ghci use precompiled modules, and C library
|
||||
:set -outputdir=tmp
|
||||
:set -IUtility
|
||||
:load Common
|
||||
|
|
4
Makefile
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
|
||||
|
|
5
ghci
Executable file
5
ghci
Executable 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) $@
|
Loading…
Reference in a new issue