[Libguestfs] [PATCH 2/2] ocaml: Pass -annot flag to compiler.

Richard W.M. Jones rjones at redhat.com
Thu Oct 23 14:51:24 UTC 2014


This generates .annot files that contain type information.
In emacs + tuareg mode, using C-c C-t displays the type of the
underlying expression.
---
 .gitignore   | 1 +
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 269d735..fa1cee4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 *~
 *.a
+*.annot
 *.bak
 *.class
 *.cma
diff --git a/configure.ac b/configure.ac
index 20f87ca..6c33444 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1096,7 +1096,7 @@ AM_CONDITIONAL([HAVE_OCAML_GETTEXT],
 dnl Flags we want to pass to every OCaml compiler call.
 OCAML_WARN_ERROR="-warn-error CDEFLMPSUVYZX-3"
 AC_SUBST([OCAML_WARN_ERROR])
-OCAML_FLAGS="-g"
+OCAML_FLAGS="-g -annot"
 AC_SUBST([OCAML_FLAGS])
 
 dnl Check for Perl (optional, for Perl bindings and Perl tools).
-- 
2.0.4




More information about the Libguestfs mailing list