aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coqmktop.ml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coqmktop.ml')
-rw-r--r--tools/coqmktop.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/coqmktop.ml b/tools/coqmktop.ml
index 28a3c791c..524fe6323 100644
--- a/tools/coqmktop.ml
+++ b/tools/coqmktop.ml
@@ -271,8 +271,10 @@ let main () =
try
(* - We add topstart.cmo explicitly because we shunted ocamlmktop wrapper.
- With the coq .cma, we MUST use the -linkall option. *)
+ let coq_camlflags =
+ List.filter ((<>) "") (String.split_on_char ' ' Coq_config.caml_flags) in
let args =
- "-linkall" :: "-rectypes" :: "-w" :: "-31" :: flags @ copts @ options @
+ coq_camlflags @ "-linkall" :: "-w" :: "-31" :: flags @ copts @ options @
(std_includes basedir) @ tolink @ [ main_file ] @ topstart
in
if !echo then begin