Commit 62775e2e authored by fpottier's avatar fpottier
Browse files

Fix a newline conversion problem on Windows, thanks to Jonathan.

git-svn-id: svn+ssh:// 0f8b5475-4b4e-0410-85a8-ee3154a6bfe7
parent f31f206a
Fixed a newline conversion problem that would prevent Menhir from
building on Windows when using ocaml 4.01.
Switched to ocamlbuild. Many thanks to Daniel Weil for offering
very useful guidance.
......@@ -27,6 +27,9 @@ let exhaust channel =
let invoke command =
let ic = Unix.open_process_in command in
(* 20130911 Be careful to read in text mode, so as to avoid newline
translation problems (which would manifest themselves on Windows). *)
set_binary_mode_in ic false;
let result = exhaust ic in
match Unix.close_process_in ic with
| Unix.WEXITED 0 ->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment