Skip to content

Commit

Permalink
make plugin loadable via findlib
Browse files Browse the repository at this point in the history
gares committed Nov 26, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4909286 commit a63bdc0
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.13.8 (November 2021)

- Build:
- link `camlp5.gramlib` as part of `elpi.cmxs` so that the plugin can be
loaded via findlib.

# v1.13.7 (July 2021)

- Compiler:
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -25,8 +25,15 @@ TIME=--time $(shell if type -P gtime >/dev/null 2>&1; then type -P gtime; else e
STACK=32768
DUNE_OPTS=

CP5:=$(shell ocamlfind query camlp5)

build:
dune build $(DUNE_OPTS) @all
# hack: link camlp5.gramlib in the plugin
ocamlfind opt -shared -linkall -o _build/install/default/lib/elpi/elpi.cmxs \
$(CP5)/gramlib.cmxa \
_build/install/default/lib/elpi/elpi.cmxa


install:
dune install $(DUNE_OPTS)

0 comments on commit a63bdc0

Please sign in to comment.