Debian Codegraph @

dune

raw ◀ ▶
1 Debian patch touch this file
1 ; Default flags for all Rocq libraries.
2 (env
•3 ; cf explanation for warning settings in configure.ml
4 (dev (flags :standard -w +a-4-9-27-40..42-44-45-48-58-67-68-70 -warn-error +a \ -short-paths)
5 (rocq (flags :standard -w +default)))
6 (release (flags :standard)
7 (ocamlopt_flags :standard -O3 -unbox-closures))
8 (ireport (flags :standard -w -9-27+60-70)
9 (ocamlopt_flags :standard -O3 -unbox-closures -inlining-report)))
10
11 ; Information about flags for release mode:
12 ;
13 ; In #9665 we tried to add (c_flags -O3) to the release setup,
14 ; unfortunately the resulting VM seems to be slower [5% slower on
15 ; fourcolor, thus we keep the default C flags for now, which seem to
16 ; be -O2.
17
18 ; The _ profile could help factoring the above, however it doesn't
19 ; seem to work like we'd expect/like:
20 ;
21 ; (_ (flags :standard)))
22
23 (alias
24 (name default)
25 (deps rocq-runtime.install coq-core.install rocq-core.install coqide-server.install))
26
27 (alias
28 (name runtime)
29 (deps rocq-runtime.install coq-core.install))
30
31 (install
32 (section lib)
33 (package rocq-runtime)
34 (files revision))
35
36 (rule
37 (targets revision)
38 (mode fallback)
39 (deps (:rev-script dev/tools/make_git_revision.sh))
40 (action (with-stdout-to revision (bash %{rev-script}))))
41
42 ; bootstrap for theories/Corelib/dune
43 (rule
44 (targets corelib_dune)
45 (deps
46 (source_tree plugins)
47 (source_tree theories)
48 %{workspace_root}/_build/install/%{context_name}/lib/rocq-runtime/META)
49 (action
50 (with-stdout-to %{targets}
51 (run tools/dune_rule_gen/gen_rules.exe Corelib theories/Corelib %{env:COQ_DUNE_EXTRA_OPT=}))))
52
53 (rule
54 (targets ltac2_dune)
55 (deps
56 (source_tree plugins)
57 (source_tree theories)
58 %{workspace_root}/_build/install/%{context_name}/lib/rocq-runtime/META)
59 (action
60 (with-stdout-to %{targets}
61 (run tools/dune_rule_gen/gen_rules.exe Ltac2 theories/Ltac2 -noinit %{env:COQ_DUNE_EXTRA_OPT=}))))
62
63 (rule
64 (targets corelib_dune_split)
65 (deps
66 (source_tree plugins)
67 (source_tree theories))
68 (action
69 (with-stdout-to %{targets}
70 (run tools/dune_rule_gen/gen_rules.exe Corelib theories/Corelib -split %{env:COQ_DUNE_EXTRA_OPT=}))))
71
72 (rule
73 (targets ltac2_dune_split)
74 (deps
75 (source_tree plugins)
76 (source_tree theories))
77 (action
78 (with-stdout-to %{targets}
79 (run tools/dune_rule_gen/gen_rules.exe Ltac2 theories/Ltac2 -noinit -split %{env:COQ_DUNE_EXTRA_OPT=}))))
80
81 ; Use summary.log as the target
82 (alias
83 (name runtest)
84 (package rocq-test-suite)
85 (deps test-suite/summary.log))
86
87 ; For make compat
88 (alias
89 (name all-src)
90 (deps
91 (source_tree theories)
92 (source_tree plugins)))
93
94 ; (dirs (:standard _build_ci))