Skip to content

Commit

Permalink
Add build support for typerex
Browse files Browse the repository at this point in the history
Wraps the compilation in the typerex compiler rules, which allows
typerex to find cross references and such.

The typerex wrapper slows down the compilation quite a bit, so
switching to byte-compilation to reduce dependencies could be useful.
  • Loading branch information
David Brown committed Mar 27, 2012
1 parent 2854dc9 commit 995adff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .typerex
@@ -0,0 +1,5 @@
CMT _build

# Where to find sources for various libraries we depend upon.
/home/davidb/ocaml/batteries-included/src
.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -5,6 +5,10 @@

KIND = native

# Build typerex info.
# Comment out to build without
# export OCAMLFIND_CONF := $(PWD)/etc/findlib-typerex.conf

TARGETS = test.$(KIND) odump.$(KIND)
all: .force
ocamlbuild $(TARGETS)
Expand Down
2 changes: 2 additions & 0 deletions _tags
Expand Up @@ -5,6 +5,8 @@
<*.ml> or <*.mli> or <*.native> or <*.byte>: package(shell)
<*.ml> or <*.mli> or <*.native> or <*.byte>: thread

<*.ml> or <*.mli>: annot

# Enable this to get camlp4of.
# TODO: Figure out how to pull in other extensions.
# <*.ml> or <*.mli>: camlp4of
Expand Down
5 changes: 5 additions & 0 deletions etc/findlib-typerex.conf
@@ -0,0 +1,5 @@
destdir="/usr/local/lib/ocaml/3.12.1"
path="/usr/local/lib/ocaml/3.12.1:/usr/lib/ocaml:/usr/lib/ocaml/METAS"

ocamlc="ocp-ocamlc.opt"
ocamlopt="ocp-ocamlopt.opt"

0 comments on commit 995adff

Please sign in to comment.