aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.build
diff options
context:
space:
mode:
authorGravatar Matej Košík <matej.kosik@inria.fr>2017-07-21 15:48:23 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-07-26 01:27:11 +0200
commitae325798c95bd43126e72ce71a7e76e4bee69d3e (patch)
tree2a6ccffd5594f80d2880ec6ff40cab97c7d51589 /Makefile.build
parentfc218c26cfb226be25c344af50b4b86e52360934 (diff)
make sure that API-leaks cannot be reintroduced by mistake
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.build b/Makefile.build
index 7703df08f..e3316df91 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -564,6 +564,12 @@ kernel/kernel.cma: kernel/kernel.mllib
$(SHOW)'OCAMLC -a -o $@'
$(HIDE)$(OCAMLC) $(MLINCLUDES) $(BYTEFLAGS) $(VMBYTEFLAGS) -a -o $@ $(filter-out %.mllib, $^)
+# Specific rule for API/API.cmi
+# Make sure that API/API.mli cannot leak types from the Coq codebase.
+API/API.cmi : API/API.mli
+ $(SHOW)'OCAMLC $<'
+ $(HIDE)$(OCAMLC) -I lib -I $(MYCAMLP4LIB) -c $<
+
%.cma: %.mllib
$(SHOW)'OCAMLC -a -o $@'
$(HIDE)$(OCAMLC) $(MLINCLUDES) $(BYTEFLAGS) -a -o $@ $(filter-out %.mllib, $^)