Skip to content

Commit

Permalink
Emit bytecode in dune build for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Helwer <[email protected]>
  • Loading branch information
ahelwer committed Jul 15, 2024
1 parent 117b5cb commit 9b45372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ release:
rm -rf _build/tlaps-release-dir _build/tlaps-release-version
dune install --relocatable --prefix _build/tlaps-release-dir
make -C _build/tlaps-release-dir/lib/tlapm -f Makefile.post-install
find _build
cd test && env \
USE_TLAPM=../_build/tlaps-release-dir/bin/tlapm \
USE_LIB=../_build/tlaps-release-dir/lib/tlapm/stdlib \
CAML_LD_LIBRARY_PATH=../_build/tlaps-release-dir/src:$CAML_LD_LIBRARY_PATH \
./TOOLS/do_tests fast/basic
RELEASE_VERSION="$$(_build/tlaps-release-dir/bin/tlapm --version)" \
&& rm -rf _build/$(RELEASE_FILE) \
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

(executable
(name tlapm)
(modes byte)
(public_name tlapm)
(modules tlapm)
(libraries tlapm_lib)
Expand All @@ -26,4 +27,3 @@
(sites tlapm))

(include_subdirs unqualified)

0 comments on commit 9b45372

Please sign in to comment.