-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdune
70 lines (65 loc) · 2.17 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
;**************************************************************************
;* *
;* 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. *
;* *
;**************************************************************************
;; [stable] was renamed to [stdlib_stable]. This library clones [stdlib_stable]
;; until we move all existing uses of [stable] to [stdlib_stable].
(library
(name stable)
(wrapped false)
(modes byte native)
(flags
(-strict-sequence
-principal
-absname
-w
+a-4-9-40-41-42-44-45-48-66
-warn-error
A
-bin-annot
-safe-string
-strict-formats
-extension-universe
stable))
(ocamlopt_flags
(:include %{project_root}/ocamlopt_flags.sexp))
(library_flags
(:standard -linkall)))
;; We clone files from [stdlib_stable] instead of re-exporting the library
;; to avoid adding a new transitive dependency to builds.
(rule
(deps
(glob_files ../stdlib_stable/*.{ml,mli}))
(targets
float_u.ml
float_u.mli
int32_u.ml
int32_u.mli
int64_u.ml
int64_u.mli
nativeint_u.ml
nativeint_u.mli
stable.ml
stable.mli)
(action
(bash
"cp ../stdlib_stable/*.{ml,mli} .; mv stdlib_stable.ml stable.ml; mv stdlib_stable.mli stable.mli")))
(install
(files
(glob_files
(*.{cmxa,a,cmxs,cma,mli} with_prefix stable))
(glob_files
(.stable.objs/byte/*.{cmi,cmt,cmti} with_prefix stable))
(glob_files
(.stable.objs/native/*.cmx with_prefix stable)))
(section lib)
(package ocaml))