summaryrefslogtreecommitdiffstats
path: root/ocaml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml')
-rw-r--r--ocaml/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/ocaml/Makefile.am b/ocaml/Makefile.am
index e4a0a734..12522f24 100644
--- a/ocaml/Makefile.am
+++ b/ocaml/Makefile.am
@@ -76,6 +76,11 @@ t/guestfs_060_readdir: t/guestfs_060_readdir.cmx mlguestfs.cmxa
mkdir -p t
$(OCAMLFIND) ocamlopt -cclib -L$(top_builddir)/src/.libs -I . unix.cmxa mlguestfs.cmxa $< -o $@
+# Need to rebuild the tests from source if the main library has
+# changed at all, otherwise we get inconsistent assumptions.
+t/%.cmx: t/%.ml mlguestfs.cmxa
+ $(OCAMLFIND) ocamlopt -c $< -o $@
+
.mli.cmi:
$(OCAMLFIND) ocamlc -c $< -o $@
.ml.cmo: