forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dune
39 lines (38 loc) · 1.56 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
; The default combination of flags is ':standard', which is made of the
; following options:
; -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence
; -strict-formats -short-paths -keep-locs
; The documentation for the warning numbers is available at:
; https://v2.ocaml.org/manual/comp.html#s%3Acomp-options
;
; We considered disabling the '-short-paths' option due to bad aliases
; being shown in type hints and error messages, but the alternative also
; picks arbitrary aliases. Instead, we use '-short-paths' and prefix
; our type aliases with 'a_' as a workaround.
; See issue https://github.com/ocaml/ocaml/issues/10432 for details.
;
(env
(_
; -6 is to allow to omit labels in function application
; -52 is to allow to match on Failure "precise_string"
; -67 is to allow unused functor paramaters (introduced by dune 3.7)
; -69 allows unused structure fields (introduced by dune 3.7)
(flags (:standard -w -6-52-67-69))
; TODO: I've tried this, but this does not work so I've added --table in
; the few dune files using menhir
;(menhir_flags (--table))
; js_of_ocaml has a bug w/ shortvars after 5.5.2 so let's disable it
(js_of_ocaml (flags :standard --disable shortvar)))
)
; List of relevant directories to look for dune files for building. By omitting
; tests/ and stats/, which contain many files, we can speedup a little bit dune.
; coupling: if you modify this, you probably need to modify the core-cache
; regexps in .github/workflow/tests.yml passed to the hashFiles function
(dirs
TCB
libs
languages
src
js
tools
)