Skip to content

Commit

Permalink
Don't run ocaml through ocamlrun on non-Windows
Browse files Browse the repository at this point in the history
seems it doesn't always work depending on the installed ocaml; and the
workaround is only needed on Windows (for the record: the reason for
that had to do with losing the process handle on Windows when ocamlrun
got called automatically due to #!)
  • Loading branch information
AltGr committed Oct 7, 2016
1 parent 48ca399 commit bb391b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cfg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ let char_width = ref 8 (* Computed once the text view is initialized *)

let theme = ref "dark"

let ocaml_cmd = ref "ocamlrun"

let ocaml_opts : string list ref = ref ["ocaml"]
let ocaml_cmd, ocaml_opts =
if Sys.os_type = "Win32"
then ref "ocamlrun", ref ["ocaml"]
else ref "ocaml", ref []

0 comments on commit bb391b8

Please sign in to comment.