ocamlmktop.ml: call ocamlc adjacent to itself.
This was the behavior of the ocamlmktop shell script.master
parent
73b7f7c2fa
commit
5f968b00ff
|
@ -15,6 +15,8 @@
|
|||
|
||||
let _ =
|
||||
let args = Ccomp.quote_files (List.tl (Array.to_list Sys.argv)) in
|
||||
exit(Sys.command("ocamlc -I +compiler-libs -linkall ocamlcommon.cma \
|
||||
let ocamlmktop = Sys.executable_name in
|
||||
let ocamlc = Filename.(quote (concat (dirname ocamlmktop) "ocamlc")) in
|
||||
exit(Sys.command(ocamlc ^ " -I +compiler-libs -linkall ocamlcommon.cma \
|
||||
ocamlbytecomp.cma ocamltoplevel.cma "
|
||||
^ args ^ " topstart.cmo"))
|
||||
|
|
Loading…
Reference in New Issue