patch-coqmktmp_ml 932 B

1234567891011121314151617181920
  1. --- scripts/coqmktop.ml.orig Wed Jun 1 19:03:26 2016
  2. +++ scripts/coqmktop.ml Wed Jun 1 19:05:51 2016
  3. @@ -269,14 +269,14 @@
  4. (* native code *)
  5. if !top then failwith "no custom toplevel in native code !";
  6. let ocamloptexec = Filename.quote (Filename.concat camlbin "ocamlopt") in
  7. - ocamloptexec^" -linkall"
  8. + ocamloptexec^" -linkall -warn-error -a"
  9. end else
  10. (* bytecode (we shunt ocamlmktop script which fails on win32) *)
  11. let ocamlmktoplib = if is_ocaml4
  12. then " ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma"
  13. else " toplevellib.cma" in
  14. let ocamlcexec = Filename.quote (Filename.concat camlbin "ocamlc") in
  15. - let ocamlccustom = Printf.sprintf "%s %s -linkall "
  16. + let ocamlccustom = Printf.sprintf "%s %s -linkall -warn-error -a "
  17. ocamlcexec Coq_config.coqrunbyteflags in
  18. (if !top then ocamlccustom^ocamlmktoplib else ocamlccustom)
  19. in