-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathg
executable file
·24 lines (17 loc) · 950 Bytes
/
g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#(stack build hoom:exe:hoom && stack exec hoom) 2>&1 | tee out
#(stack build hoom:exe:holfenstein && stack exec holfenstein) 2>&1 | tee out
(stack build hoom:exe:larf && stack exec larf) 2>&1 | tee out
exit
rm -f Holfenstein.prof
#OPTFLAGS=-O3
OPTFLAGS=
rm -f gfx.o
gcc $OPTFLAGS -c -o gfx.o gfx.c
#cabal configure -f examples
#(cabal build lazyfoo-lesson-43 && dist/build/lazyfoo-lesson-43/lazyfoo-lesson-43) 2>&1 | tee out
(ghc $OPTFLAGS -rtsopts -prof -Werror -ferror-spans -fprof-auto -fprof-cafs -outputdir ifs -o Hoom gfx.o Hoom.hs && ./Hoom -cx +RTS -xc -p) 2>&1 | tee out
exit
# No prof, so no stack trace
#(ghc $OPTFLAGS -outputdir ifs -o Holfenstein Holfenstein.hs gfx.o && ./Holfenstein) 2>&1 | tee out
# Doesn't work on linux, probably missing prof libraries
(ghc $OPTFLAGS -rtsopts -prof -Werror -ferror-spans -fprof-auto -fprof-cafs -outputdir ifs -o Holfenstein gfx.o Holfenstein.hs && ./Holfenstein -cx +RTS -p) 2>&1 | tee out