This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dune
208 lines (173 loc) · 4.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
; The default combination of flags is ':standard', which is made of the
; following options:
; -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"
; -58 is to allow missing cmx files (only a problem with Dyp)
(flags (:standard -w -6-52-58))
; 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))
))
; 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
src
libs
tools
languages
tests ; todo, should move out Test.ml out of the tests/ data dir
js ; consider commenting this if the default compilation time is too much
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Don't build executables for the submodules that we only use as libraries.
; - Saves a tiny bit of build time (about 3-4%).
; - Keeps the bin/ folder clean.
;
; To update the list of directories below, just look at the current content
; of bin/ and spot the parse-xxx binaries and add a subdir entry for it
; to not build it.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(subdir
libs/ocaml-tree-sitter-core/src/gen
(data_only_dirs bin)
)
; Unfortunately, 'subdir' doesn't expand wildcards.
;(subdir
; languages/*/tree-sitter/semgrep-*
; (data_only_dirs bin)
;)
(subdir
languages/bash/tree-sitter/semgrep-bash
(data_only_dirs bin)
)
(subdir
languages/c/tree-sitter/semgrep-c
(data_only_dirs bin)
)
(subdir
languages/cpp/tree-sitter/semgrep-cpp
(data_only_dirs bin)
)
(subdir
languages/csharp/tree-sitter/semgrep-c-sharp
(data_only_dirs bin)
)
(subdir
languages/tree-sitter-lang/semgrep-dart
(data_only_dirs bin)
)
(subdir
languages/dockerfile/tree-sitter/semgrep-dockerfile
(data_only_dirs bin)
)
(subdir
languages/elixir/tree-sitter/semgrep-elixir
(data_only_dirs bin)
)
(subdir
languages/go/tree-sitter/semgrep-go
(data_only_dirs bin)
)
(subdir
languages/tree-sitter-lang/semgrep-hack
(data_only_dirs bin)
)
(subdir
languages/terraform/tree-sitter/semgrep-hcl
(data_only_dirs bin)
)
(subdir
languages/html/tree-sitter/semgrep-html
(data_only_dirs bin)
)
(subdir
languages/java/tree-sitter/semgrep-java
(data_only_dirs bin)
)
(subdir
languages/javascript/tree-sitter/semgrep-javascript
(data_only_dirs bin)
)
; no json, reusing javascript
(subdir
languages/julia/tree-sitter/semgrep-julia
(data_only_dirs bin)
)
(subdir
languages/jsonnet/tree-sitter/semgrep-jsonnet
(data_only_dirs bin)
)
(subdir
languages/kotlin/tree-sitter/semgrep-kotlin
(data_only_dirs bin)
)
(subdir
languages/lisp/tree-sitter/semgrep-clojure
(data_only_dirs bin)
)
(subdir
languages/lua/tree-sitter/semgrep-lua
(data_only_dirs bin)
)
(subdir
languages/ocaml/tree-sitter/semgrep-ocaml
(data_only_dirs bin)
)
(subdir
languages/php/tree-sitter/semgrep-php
(data_only_dirs bin)
)
(subdir
languages/python/tree-sitter/semgrep-python
(data_only_dirs bin)
)
(subdir
languages/r/tree-sitter/semgrep-r
(data_only_dirs bin)
)
(subdir
languages/ruby/tree-sitter/semgrep-ruby
(data_only_dirs bin)
)
(subdir
languages/rust/tree-sitter/semgrep-rust
(data_only_dirs bin)
)
; no tree-sitter yet for scala
(subdir
languages/solidity/tree-sitter/semgrep-solidity
(data_only_dirs bin)
)
(subdir
languages/tree-sitter-lang/semgrep-sqlite
(data_only_dirs bin)
)
(subdir
languages/swift/tree-sitter/semgrep-swift
(data_only_dirs bin)
)
(subdir
languages/typescript/tree-sitter/semgrep-tsx
(data_only_dirs bin)
)
(subdir
languages/typescript/tree-sitter/semgrep-typescript
(data_only_dirs bin)
)
(subdir
languages/tree-sitter-lang/semgrep-vue
(data_only_dirs bin)
)