-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathdune
82 lines (77 loc) · 2.37 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
;**************************************************************************
;* *
;* OCaml *
;* *
;* Diana Kalinichenko, Jane Street, New York *
;* *
;* Copyright 2024 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. *
;* *
;**************************************************************************
(library
(name stdlib_stable)
(public_name ocaml.stdlib_stable)
(modes byte native)
(flags
(:standard
-strict-sequence
-absname
-bin-annot
-safe-string
-strict-formats
-extension-universe
stable))
(ocamlopt_flags
(:include %{project_root}/ocamlopt_flags.sexp))
(library_flags
(:standard -linkall)))
(rule
(targets
float32.ml
float32.mli
float32_u.ml
float32_u.mli
stdlib_stable.ml
stdlib_stable.mli)
(deps
amd64/float32.ml
amd64/float32.mli
amd64/float32_u.ml
amd64/float32_u.mli
amd64/stdlib_stable.ml
amd64/stdlib_stable.mli)
(enabled_if
(= %{architecture} "amd64"))
(action
(progn
(copy amd64/float32.ml float32.ml)
(copy amd64/float32.mli float32.mli)
(copy amd64/float32_u.ml float32_u.ml)
(copy amd64/float32_u.mli float32_u.mli)
(copy amd64/stdlib_stable.ml stdlib_stable.ml)
(copy amd64/stdlib_stable.mli stdlib_stable.mli))))
(rule
(targets stdlib_stable.ml stdlib_stable.mli)
(deps generic/stdlib_stable.ml generic/stdlib_stable.mli)
(enabled_if
(<> %{architecture} "amd64"))
(action
(progn
(copy generic/stdlib_stable.ml stdlib_stable.ml)
(copy generic/stdlib_stable.mli stdlib_stable.mli))))
(rule
(deps
(:first-dep ../to_install.sh)
(source_tree .))
(action
(with-stdout-to
to_install.sexp
(run "%{first-dep}" "stdlib_stable"))))
(install
(files
(META as stdlib_stable/META))
(section lib)
(package ocaml))