Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow RTS flags #279

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agda2hs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ executable agda2hs
ViewPatterns
NamedFieldPuns
PatternSynonyms
ghc-options: -Werror
ghc-options: -Werror -rtsopts
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages: ./agda2hs.cabal
constraints: Agda +debug

7 changes: 4 additions & 3 deletions test/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

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

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

Expand All @@ -10,13 +11,13 @@ clean :

alltests :
@echo == Compiling tests ==
./agda2hs AllTests.agda -o build
$(AGDA2HS) AllTests.agda -o build
@echo == Running ghc ==
@(cd build; ghc -fno-code AllTests.hs)

cubicaltests :
@echo == Compiling tests using cubical ==
./agda2hs CubicalTests.agda -o build
$(AGDA2HS) CubicalTests.agda -o build
@echo == Running ghc ==
@(cd build; ghc -fno-code CubicalTests.hs)

Expand All @@ -31,7 +32,7 @@ print-fail :

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

force-recompile :

Expand Down