forked from cil-project/cil
-
Notifications
You must be signed in to change notification settings - Fork 20
/
dune
78 lines (64 loc) · 2.03 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
(include_subdirs unqualified)
(library
(public_name goblint-cil)
(name goblintCil)
(libraries zarith findlib dynlink unix str stdlib-shims)
(modules (:standard \ main ciloptions machdepConfigure machdepArchConfigure modelConfigure))
)
(executable
(name machdepConfigure)
(modules machdepConfigure)
(libraries dune-configurator))
(rule
(target machdep-config.h)
(action (run ./machdepConfigure.exe)))
(rule
(deps machdep-config.h machdep-ml.c)
(target machdep-ml.exe)
(action (run %{read-lines:../bin/real-gcc} -D_GNUCC machdep-ml.c -o %{target})))
(executable
(name machdepArchConfigure)
(modules machdepArchConfigure)
(libraries dune-configurator))
(rule
(deps machdep-config.h machdep-ml.c)
(target machdep32)
(action (with-stdout-to %{target} (run ./machdepArchConfigure.exe --real-gcc %{read-lines:../bin/real-gcc} -m 32))))
(rule
(deps machdep-config.h machdep-ml.c)
(target machdep64)
(action (with-stdout-to %{target} (run ./machdepArchConfigure.exe --real-gcc %{read-lines:../bin/real-gcc} -m 64))))
; for Cilly.pm
(executable
(name modelConfigure)
(modules modelConfigure)
(libraries dune-configurator))
; for Cilly.pm
(rule
(deps machdep-config.h machdep-ml.c)
(target gcc32model)
(action (with-stdout-to %{target} (run ./modelConfigure.exe --real-gcc %{read-lines:../bin/real-gcc} -m 32))))
; for Cilly.pm
(rule
(deps machdep-config.h machdep-ml.c)
(target gcc64model)
(action (with-stdout-to %{target} (run ./modelConfigure.exe --real-gcc %{read-lines:../bin/real-gcc} -m 64))))
(rule
(deps machdep32 machdep64)
(target machdep.ml)
(action (run %{bin:cppo} -V OCAML:%{ocaml_version}
%{dep:machdep.cppo.ml} -x machdep:./%{dep:machdep-ml.exe}
-o %{target})))
(ocamllex formatlex)
(ocamlyacc formatparse)
(executable
(name main)
(modules main ciloptions)
(modes native)
(libraries goblint-cil)
(flags :standard -linkall))
(env
(dev
(flags (:standard -warn-error -A -w -unused-var-strict)) ; https://dune.readthedocs.io/en/stable/faq.html#how-to-make-warnings-non-fatal
)
)