Skip to content

Commit 71cd0b2

Browse files
panglesdjonludlam
authored andcommitted
Fix default alias
The default alias will build every target known to dune. Since the addition of benchmarking, the rule running the reference driver does have a target, and was runned at each invokation of `dune build` in the root of the project. This makes the default rules of the root directory an alias for the default rule of the `src` directory, avoiding running the reference driver too often (it also removes some rules in test from the root default alias). Signed-off-by: Paul-Elliot <[email protected]>
1 parent 99bcd17 commit 71cd0b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dune

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
(flags
1010
(:standard -g -w -18-53))))
1111

12+
; Note: We exclude any other directory from the default alias, to avoid building
13+
; docs targets when running `dune build` in the root directory.
14+
15+
(alias
16+
(name default)
17+
(deps
18+
(alias_rec src/default)))
19+
1220
(rule
1321
(alias bench)
1422
(action

0 commit comments

Comments
 (0)