Skip to content

Commit e947207

Browse files
committed
Allow RTS flags
1 parent 79ae635 commit e947207

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

agda2hs.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ executable agda2hs
8686
ViewPatterns
8787
NamedFieldPuns
8888
PatternSynonyms
89-
ghc-options: -Werror
89+
ghc-options: -Werror -rtsopts

cabal.project

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages: ./agda2hs.cabal
22
constraints: Agda +debug
3+

test/Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
.PHONY : default clean golden alltests cubicaltests fail print-fail compare force-recompile
3+
AGDA2HS=./agda2hs +RTS -M2G -RTS
34

45
ROOT=$(shell cd ..; pwd)/
56

@@ -10,13 +11,13 @@ clean :
1011

1112
alltests :
1213
@echo == Compiling tests ==
13-
./agda2hs AllTests.agda -o build
14+
$(AGDA2HS) AllTests.agda -o build
1415
@echo == Running ghc ==
1516
@(cd build; ghc -fno-code AllTests.hs)
1617

1718
cubicaltests :
1819
@echo == Compiling tests using cubical ==
19-
./agda2hs CubicalTests.agda -o build
20+
$(AGDA2HS) CubicalTests.agda -o build
2021
@echo == Running ghc ==
2122
@(cd build; ghc -fno-code CubicalTests.hs)
2223

@@ -31,7 +32,7 @@ print-fail :
3132

3233
build/%.err : Fail/%.agda force-recompile alltests
3334
@echo Compiling $<
34-
@(./agda2hs $< -o build -v0 && echo "UNEXPECTED SUCCESS" || true) | sed -e 's:'$(ROOT)'::g' > $@
35+
@($(AGDA2HS) $< -o build -v0 && echo "UNEXPECTED SUCCESS" || true) | sed -e 's:'$(ROOT)'::g' > $@
3536

3637
force-recompile :
3738

0 commit comments

Comments
 (0)