summaryrefslogtreecommitdiff
path: root/ocamlbuild/ocamlbuild_where.ml
blob: cb8b846227b8f581c325dfd4aeac7c348985ce36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(***********************************************************************)
(*                                                                     *)
(*                             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 GNU Library General Public License, with    *)
(*  the special exception on linking described in file ../LICENSE.     *)
(*                                                                     *)
(***********************************************************************)

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