aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coqdep.ml
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2014-12-04 08:45:07 +0100
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2014-12-04 11:39:12 +0100
commit21a1c8abdd5807427849c34875c294cb6ad7d899 (patch)
tree3a722cc770663196bb23ad37c36bd23fff1a41bd /tools/coqdep.ml
parent34bb77c953e917f5fbff489c5758abcbadc22224 (diff)
coqdep: Warning about ml file clashes, keeping the file corresponding
to the first -I option. Fortunately, with -I option, only one file can be found by occurrence of the option, so on the contrary of -Q/-R options for v files, the order is not file-system dependent.
Diffstat (limited to 'tools/coqdep.ml')
-rw-r--r--tools/coqdep.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/coqdep.ml b/tools/coqdep.ml
index 08c42b7eb..f90620b2f 100644
--- a/tools/coqdep.ml
+++ b/tools/coqdep.ml
@@ -495,9 +495,9 @@ let coqdep () =
(Envars.xdg_dirs (fun x -> Pp.msg_warning (Pp.str x)));
List.iter (fun s -> add_dir add_coqlib_known s []) Envars.coqpath;
end;
- List.iter (fun (f,d) -> add_mli_known f d) !mliAccu;
- List.iter (fun (f,d) -> add_mllib_known f d) !mllibAccu;
- List.iter (fun (f,_,d) -> add_ml_known f d) !mlAccu;
+ List.iter (fun (f,d) -> add_mli_known f d ".mli") !mliAccu;
+ List.iter (fun (f,d) -> add_mllib_known f d ".mllib") !mllibAccu;
+ List.iter (fun (f,suff,d) -> add_ml_known f d suff) !mlAccu;
warning_mult ".mli" iter_mli_known;
warning_mult ".ml" iter_ml_known;
if !option_sort then begin sort (); exit 0 end;