aboutsummaryrefslogtreecommitdiff
path: root/tools/coqmktop.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2017-09-08 23:13:53 +0200
committerEnrico Tassi2017-09-19 14:31:09 +0200
commit0cc07dd290eb85bbb167dae2985cd1e468df882c (patch)
tree11dce67458a4fc042fc7c5f7ac49c1fa4feddf9e /tools/coqmktop.ml
parentb1fbec7e3945fe2965f4ba9f80c8c31b821dbce1 (diff)
coq_makefile: make sure compile flags for Coq and coq_makefile are in sync
E.g. -safe-string is set by configure.ml and made available to both make (via config/Makefile) and coq_makefile (via config/coq_config.ml -> lib/envars.ml -> CoqMakefile.in).
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 28a3c791cb..524fe63232 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