-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathdune
53 lines (47 loc) · 1.34 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
;**************************************************************************
;* *
;* The Flambda backend project for OCaml *
;* *
;* Mark Shinwell, Jane Street Europe *
;* *
;* Copyright 2020 Jane Street Group LLC *
;* *
;**************************************************************************
(ocamllex lexer)
(ocamlyacc parser)
(library
(name ocamllex_lib)
(wrapped false)
(modes byte native)
(ocamlopt_flags (:include %{project_root}/ocamlopt_flags.sexp))
(modules
common
compact
cset
lexer
lexgen
output
outputbis
parser
syntax
table))
(executable
(name main)
(modes byte)
(libraries ocamllex_lib)
(modules main))
(rule
(targets main_native.ml)
(action (copy main.ml %{targets})))
(executable
(name main_native)
(modes native)
(libraries ocamllex_lib)
(modules main_native))
(install
(files
(main.bc as ocamllex.byte)
(main_native.exe as ocamllex.opt)
)
(section bin)
(package ocaml))