1. HongboZhang
  2. ocaml

Source

ocaml / ocamlbuild / ocamlbuild_where.ml

(***********************************************************************)
(*                                                                     *)
(*                             ocamlbuild                              *)
(*                                                                     *)
(*  Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
(*                                                                     *)
(*  Copyright 2007 Institut National de Recherche en Informatique et   *)
(*  en Automatique.  All rights reserved.  This file is distributed    *)
(*  under the terms of the Q Public License version 1.0.               *)
(*                                                                     *)
(***********************************************************************)

let bindir = ref Ocamlbuild_Myocamlbuild_config.bindir;;
let libdir = ref begin
  Filename.concat
    (try Sys.getenv "OCAMLLIB"
     with Not_found -> Ocamlbuild_Myocamlbuild_config.libdir)
    "ocamlbuild"
end;;