summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-11-06 16:55:18 +0000
committerAlain Frisch <alain@frisch.fr>2012-11-06 16:55:18 +0000
commit49f50409cd06a04d504bf1070267c6f49b8bb3b1 (patch)
treef6635cc0d299a1ec979c8769f17b13156ed37ee7
parent961982c7e05a31e247ea35e876997199fa75a051 (diff)
#5812: compile read_cmt.opt (about 10x faster than read_cmt to generate .annot files).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13067 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rwxr-xr-xboot/ocamlcbin1294591 -> 1294859 bytes
-rw-r--r--tools/Makefile.shared7
2 files changed, 5 insertions, 2 deletions
diff --git a/boot/ocamlc b/boot/ocamlc
index 3f243d69e..7d2e515f1 100755
--- a/boot/ocamlc
+++ b/boot/ocamlc
Binary files differ
diff --git a/tools/Makefile.shared b/tools/Makefile.shared
index b36a992b7..b46cb9e69 100644
--- a/tools/Makefile.shared
+++ b/tools/Makefile.shared
@@ -28,7 +28,7 @@ all: ocamldep ocamlprof ocamlcp ocamloptp ocamlmktop ocamlmklib dumpobj \
.PHONY: all
-opt.opt: ocamldep.opt
+opt.opt: ocamldep.opt read_cmt.opt
.PHONY: opt.opt
# The dependency generator
@@ -234,8 +234,11 @@ READ_CMT= \
read_cmt: $(READ_CMT)
$(CAMLC) $(LINKFLAGS) -o read_cmt $(READ_CMT)
+read_cmt.opt: $(READ_CMT:.cmo=.cmx)
+ $(CAMLOPT) $(LINKFLAGS) -o read_cmt.opt $(READ_CMT:.cmo=.cmx)
+
clean::
- rm -f read_cmt
+ rm -f read_cmt read_cmt.opt
beforedepend::