aboutsummaryrefslogtreecommitdiff
path: root/lib/coqProject_file.mli
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-11-06 11:33:09 +0100
committerEmilio Jesus Gallego Arias2018-11-17 06:37:05 +0100
commit4e9bc09df64cd15e85c19ecabbc9580c00771176 (patch)
treed5a9c68561a5d7573641053580b95bc3c7c9be43 /lib/coqProject_file.mli
parentf8a76b3d383abf468fb21df509f5da8f8aafa913 (diff)
[CoqProject] Abstract warning function for CoqProject readers.
`CoqProject_file` uses the feedback system, however this is not very convenient in some scenarios such as `coqdep` that has to be run very early in the build process [and thus in "boot" mode]. We thus make the warning function a paramater. Should fix #8913.
Diffstat (limited to 'lib/coqProject_file.mli')
-rw-r--r--lib/coqProject_file.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coqProject_file.mli b/lib/coqProject_file.mli
index 2a6a09a9a0..20b276ce8c 100644
--- a/lib/coqProject_file.mli
+++ b/lib/coqProject_file.mli
@@ -51,8 +51,8 @@ and install =
| TraditionalInstall
| UserInstall
-val cmdline_args_to_project : curdir:string -> string list -> project
-val read_project_file : string -> project
+val cmdline_args_to_project : warning_fn:(string -> unit) -> curdir:string -> string list -> project
+val read_project_file : warning_fn:(string -> unit) -> string -> project
val coqtop_args_from_project : project -> string list
val find_project_file : from:string -> projfile_name:string -> string option