Correct detected value for ocaml on Windows

This commit is contained in:
David Allsopp 2017-06-13 14:17:40 +02:00
parent d809a3362a
commit 574866af2e
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,9 @@ val parse_path : string -> Path.t list
(** The opam tool *)
val opam : Path.t option
(** Extension to append to executable filenames *)
val exe : string
(** Look for a program in the PATH *)
val which : ?path:Path.t list -> string -> Path.t option

View File

@ -311,7 +311,7 @@ let create ~(kind : Kind.t) ~path ~base_env ~env_extra ~name ~merlin ~use_findli
; toplevel_path = Option.map (get_env env "OCAML_TOPLEVEL_PATH") ~f:Path.absolute
; ocaml_bin = dir
; ocaml = Path.relative dir "ocaml"
; ocaml = Path.relative dir ("ocaml" ^ Bin.exe)
; ocamlc
; ocamlopt = best_prog "ocamlopt"
; ocamldep = get_prog "ocamldep"