forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdune
64 lines (58 loc) · 2.6 KB
/
dune
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
;**************************************************************************
;* *
;* OCaml *
;* *
;* Thomas Refis, Jane Street Europe *
;* *
;* Copyright 2018 Jane Street Group LLC *
;* *
;* All rights reserved. This file is distributed under the terms of *
;* the GNU Lesser General Public License version 2.1, with the *
;* special exception on linking described in the file LICENSE. *
;* *
;**************************************************************************
; This should probably be done using a virtual lib for e.g. Genprintval
(library
(name ocamlopttoplevel)
(modes native)
(wrapped false)
(flags (:standard -principal -nostdlib -w -9))
(ocamlopt_flags (:include %{project_root}/ocamlopt_flags.sexp))
(libraries stdlib ocamlcommon ocamlbytecomp ocamloptcomp
flambda2_to_cmm flambda2_backend_impl dynlink_internal)
(modules genprintval_native opttoploop opttopdirs opttopmain))
(rule
(targets genprintval_native.ml)
(deps %{project_root}/ocaml/toplevel/genprintval.ml)
(action (copy %{deps} %{targets})))
(executable
(name opttopstart)
(modes native)
(flags (:standard -principal -nostdlib))
(libraries
ocamlopttoplevel
stdlib
runtime_native)
(modules opttopstart))
(install
(files
(opttopstart.exe as ocamlnat)
)
(section bin)
(package ocaml))
(install
(files
(ocamlopttoplevel.a as compiler-libs/ocamlopttoplevel.a)
(ocamlopttoplevel.cmxa as compiler-libs/ocamlopttoplevel.cmxa)
(opttopdirs.mli as compiler-libs/opttopdirs.mli)
(.ocamlopttoplevel.objs/byte/opttopdirs.cmi as compiler-libs/opttopdirs.cmi)
(.ocamlopttoplevel.objs/byte/opttopdirs.cmt as compiler-libs/opttopdirs.cmt)
(.ocamlopttoplevel.objs/byte/opttopdirs.cmti as compiler-libs/opttopdirs.cmti)
(opttoploop.mli as compiler-libs/opttoploop.mli)
(.ocamlopttoplevel.objs/byte/opttoploop.cmi as compiler-libs/opttoploop.cmi)
(.ocamlopttoplevel.objs/byte/opttoploop.cmt as compiler-libs/opttoploop.cmt)
(.ocamlopttoplevel.objs/byte/opttoploop.cmti as compiler-libs/opttoploop.cmti)
(opttopmain.mli as compiler-libs/opttopmain.mli)
)
(section lib)
(package ocaml))