Fix expansion of %{ocaml_bin}
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
This commit is contained in:
parent
d27377166b
commit
66f1a201c0
|
@ -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)
|
||||
|
|
|
@ -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}))))
|
Loading…
Reference in New Issue