Fix expansion of %{ocaml_bin}

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
This commit is contained in:
Jeremie Dimino 2018-07-10 15:23:30 +01:00
parent d27377166b
commit 66f1a201c0
2 changed files with 7 additions and 1 deletions

View File

@ -124,7 +124,7 @@ module Map = struct
; "pa_cpp" , strings (context.c_compiler :: cflags
@ ["-undef"; "-traditional";
"-x"; "c"; "-E"])
; "ocaml_bin" , path context.ocaml_bin
; "ocaml_bin" , values [Dir context.ocaml_bin]
; "ocaml_version" , string context.version_string
; "ocaml_where" , string (Path.to_string context.stdlib_dir)
; "null" , string (Path.to_string Config.dev_null)

View File

@ -42,3 +42,9 @@
(alias
(name runtest)
(deps (glob_files dir-that-doesnt-exist/*)))
;; Check that %{ocaml_bin} expands to a directory and not a path
(alias
(name runtest)
(action (ignore-stdout (echo %{ocaml_bin}))))