summaryrefslogtreecommitdiffstats
path: root/tools/ocamlmktop.ml
blob: 32561c5385452a035ec8c03c6829444baea30c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(***********************************************************************)
(*                                                                     *)
(*                           Objective Caml                            *)
(*                                                                     *)
(*            Xavier Leroy, projet Cristal, INRIA Rocquencourt         *)
(*                                                                     *)
(*  Copyright 1996 Institut National de Recherche en Informatique et   *)
(*  Automatique.  Distributed only by permission.                      *)
(*                                                                     *)
(***********************************************************************)

(* $Id$ *)

let _ =
  let args =
    String.concat " " (List.tl (Array.to_list Sys.argv)) in
  exit(Sys.command("ocamlc -linkall toplevellib.cma " ^ args ^ " topmain.cmo"))