Debian Codegraph @

dune

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