summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/driver/compile.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/driver/compile.ml')
-rw-r--r--ocaml-binary-annot/driver/compile.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocaml-binary-annot/driver/compile.ml b/ocaml-binary-annot/driver/compile.ml
index 3d0c42df3c..35978a8952 100644
--- a/ocaml-binary-annot/driver/compile.ml
+++ b/ocaml-binary-annot/driver/compile.ml
@@ -89,8 +89,10 @@ let interface ppf sourcefile outputprefix =
fprintf std_formatter "%a@." Printtyp.signature
(Typemod.simplify_signature sg);
Warnings.check_fatal ();
- if not !Clflags.print_types then
+ if not !Clflags.print_types then begin
Env.save_signature sg modulename (outputprefix ^ ".cmi");
+ Typemod.save_signature tsg outputprefix;
+ end;
Pparse.remove_preprocessed inputfile
with e ->
Pparse.remove_preprocessed_if_ast inputfile;