aboutsummaryrefslogtreecommitdiff
path: root/toplevel/ccompile.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2021-02-18 19:25:53 +0100
committerEmilio Jesus Gallego Arias2021-02-26 22:57:53 +0100
commit1cffe2f00d91bc9739b40887eb36f4bbad761c5f (patch)
tree14c339ae29c232f1b110b7f05f8e59fbeb07fc76 /toplevel/ccompile.ml
parent1e54fe53ac47f08d7b8f13df16487b5a2639404f (diff)
[coqc] Don't allow to pass more than one file to coqc
This has been in the TODO queue for a long time, and indeed I have recently seen some trouble with users passing two .v files to Coq, which it isn't a) tested, b) supported. Moreover, it doesn't even work correctly in 8.13 due to some other changes in the toplevel related to auxiliary files. (*) https://stackoverflow.com/questions/66261987/compiling-multiple-coq-files-does-not-work
Diffstat (limited to 'toplevel/ccompile.ml')
-rw-r--r--toplevel/ccompile.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/toplevel/ccompile.ml b/toplevel/ccompile.ml
index ca09bad441..041097d2d3 100644
--- a/toplevel/ccompile.ml
+++ b/toplevel/ccompile.ml
@@ -216,9 +216,8 @@ let compile_file opts stm_opts copts injections (f_in, echo) =
else
compile opts stm_opts copts injections ~echo ~f_in ~f_out
-let compile_files (opts, stm_opts) copts injections =
- let compile_list = copts.compile_list in
- List.iter (compile_file opts stm_opts copts injections) compile_list
+let compile_file opts stm_opts copts injections =
+ Option.iter (compile_file opts stm_opts copts injections) copts.compile_file
(******************************************************************************)
(* VIO Dispatching *)