-
Notifications
You must be signed in to change notification settings - Fork 43
/
dune
35 lines (33 loc) · 1.46 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
(env
(dev
(flags (:standard
-strict-formats ;; Disallows legacy formats.
-strict-sequence ;; Enforces the lhs of a sequence to have type `unit'.
-safe-string ;; Immutable strings.
-bin-annot ;; Dumps information per (file) module about types, bindings, tail-calls, etc. Used by some tools.
-warn-error -a ;; Do not treat warnings as errors.
-w +A-4-42-44-45-48-60-67-70 ;; Ignores warnings 4, 42, 44, 45, 48, 60, 67, and 70.
-g ;; Adds debugging information to the resulting executable / library.
)))
(release
(flags (:standard
;; The following flags are the same as for the "dev" profile.
-strict-formats -strict-sequence -safe-string -bin-annot
-w +A-4-42-44-45-48-60-67-70 ;; Ignores warnings 4, 42, 44, 45, 48, 60, 67, and 70.
))
(ocamlopt_flags (:standard
-O3 ;; Applies (aggressive) optimisations to the resulting executable.
)))
(ci ;; Same as release, except warnings are treated as errors.
(flags (:standard
-strict-formats -strict-sequence -safe-string -bin-annot
-warn-error @A ;; Treat warnings as errors...
-w A-4-42-44-45-48-60-67-70 ;; ... except for warnings 4, 42, 44, 45, 48, 60, 67, and 70 which are ignored.
))
(ocamlopt_flags (:standard -O3))
))
(install
(package links)
(section doc)
(files (INSTALL.md as README)))
(include install.inc)