ocaml: Pass -annot flag to compiler.

This generates .annot files that contain type information.
In emacs + tuareg mode, using C-c C-t displays the type of the
underlying expression.
This commit is contained in:
Richard W.M. Jones
2014-10-23 15:43:25 +01:00
parent 90dc8942bf
commit fd70cdc3c5
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
*~
*.a
*.annot
*.bak
*.class
*.cma

View File

@@ -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).