Skip to content

Commit a0b5b8c

Browse files
committed
Reformat dune files
1 parent ad1676f commit a0b5b8c

File tree

29 files changed

+471
-95
lines changed

29 files changed

+471
-95
lines changed

benchmarks/sources/ml/dune

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,49 @@
11
(executables
2-
(names almabench bdd binary_trees boyer boyer_no_exc fannkuch_redux_2
3-
fannkuch_redux fft fib hamming kb kb_no_exc loop nucleic quicksort raytrace
4-
soli splay takc taku))
2+
(names
3+
almabench
4+
bdd
5+
binary_trees
6+
boyer
7+
boyer_no_exc
8+
fannkuch_redux_2
9+
fannkuch_redux
10+
fft
11+
fib
12+
hamming
13+
kb
14+
kb_no_exc
15+
loop
16+
nucleic
17+
quicksort
18+
raytrace
19+
soli
20+
splay
21+
takc
22+
taku))
523

624
(alias
725
(name benchmark)
8-
(deps almabench.exe bdd.exe binary_trees.exe boyer.exe boyer_no_exc.exe
9-
fannkuch_redux_2.exe fannkuch_redux.exe fft.exe fib.exe hamming.exe kb.exe
10-
kb_no_exc.exe loop.exe nucleic.exe quicksort.exe raytrace.exe soli.exe
11-
splay.exe takc.exe taku.exe))
26+
(deps
27+
almabench.exe
28+
bdd.exe
29+
binary_trees.exe
30+
boyer.exe
31+
boyer_no_exc.exe
32+
fannkuch_redux_2.exe
33+
fannkuch_redux.exe
34+
fft.exe
35+
fib.exe
36+
hamming.exe
37+
kb.exe
38+
kb_no_exc.exe
39+
loop.exe
40+
nucleic.exe
41+
quicksort.exe
42+
raytrace.exe
43+
soli.exe
44+
splay.exe
45+
takc.exe
46+
taku.exe))
1247

1348
(env
1449
(_

compiler/bin-js_of_ocaml/dune

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
(install
5252
(section man)
5353
(package js_of_ocaml-compiler)
54-
(files js_of_ocaml.1 js_of_ocaml-link.1 js_of_ocaml-build-fs.1
54+
(files
55+
js_of_ocaml.1
56+
js_of_ocaml-link.1
57+
js_of_ocaml-build-fs.1
5558
js_of_ocaml-build-runtime.1))
5659

5760
;; Generate and install runtime.js for compatibility reasons

compiler/bin-wasm_of_ocaml/dune

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323

2424
(rule
2525
(target wa_runtime.ml)
26-
(deps gen/gen.exe ../../runtime/wasm/runtime.wasm
27-
../../runtime/wasm/runtime.js ../../runtime/wasm/deps.json)
26+
(deps
27+
gen/gen.exe
28+
../../runtime/wasm/runtime.wasm
29+
../../runtime/wasm/runtime.js
30+
../../runtime/wasm/deps.json)
2831
(action
2932
(with-stdout-to
3033
%{target}

compiler/lib-dynlink/dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
(foreign_stubs
77
(language c)
88
(names stubs))
9-
(libraries js_of_ocaml-compiler js_of_ocaml-compiler.runtime
9+
(libraries
10+
js_of_ocaml-compiler
11+
js_of_ocaml-compiler.runtime
1012
compiler-libs.bytecomp))

compiler/lib/dune

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
(name js_of_ocaml_compiler)
33
(public_name js_of_ocaml-compiler)
44
(synopsis "Js_of_ocaml compiler library")
5-
(libraries compiler-libs.common compiler-libs.bytecomp menhirLib sedlex
5+
(libraries
6+
compiler-libs.common
7+
compiler-libs.bytecomp
8+
menhirLib
9+
sedlex
610
yojson)
711
(flags
812
(:standard -w -7-37 -safe-string))
@@ -13,9 +17,21 @@
1317

1418
(menhir
1519
(modules js_parser)
16-
(flags --table --external-tokens Js_token --explain --unused-token TAnnot
17-
--unused-token TComment --unused-token TCommentLineDirective --unused-token
18-
T_ERROR --unused-token T_AT))
20+
(flags
21+
--table
22+
--external-tokens
23+
Js_token
24+
--explain
25+
--unused-token
26+
TAnnot
27+
--unused-token
28+
TComment
29+
--unused-token
30+
TCommentLineDirective
31+
--unused-token
32+
T_ERROR
33+
--unused-token
34+
T_AT))
1935

2036
(menhir
2137
(modules annot_parser)

compiler/tests-check-prim/dune

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
(action
2424
(with-stdout-to
2525
%{targets}
26-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
26+
(run
27+
%{bin:js_of_ocaml}
28+
check-runtime
29+
+dynlink.js
30+
+toplevel.js
2731
%{dep:main.bc}))))
2832

2933
(rule
@@ -37,7 +41,11 @@
3741
(action
3842
(with-stdout-to
3943
%{targets}
40-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
44+
(run
45+
%{bin:js_of_ocaml}
46+
check-runtime
47+
+dynlink.js
48+
+toplevel.js
4149
%{dep:unix.bc}))))
4250

4351
(rule
@@ -51,7 +59,11 @@
5159
(action
5260
(with-stdout-to
5361
%{targets}
54-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
62+
(run
63+
%{bin:js_of_ocaml}
64+
check-runtime
65+
+dynlink.js
66+
+toplevel.js
5567
%{dep:unix.bc}))))
5668

5769
(rule
@@ -63,7 +75,11 @@
6375
(action
6476
(with-stdout-to
6577
%{targets}
66-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
78+
(run
79+
%{bin:js_of_ocaml}
80+
check-runtime
81+
+dynlink.js
82+
+toplevel.js
6783
%{dep:main.bc}))))
6884

6985
(rule
@@ -77,7 +93,11 @@
7793
(action
7894
(with-stdout-to
7995
%{targets}
80-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
96+
(run
97+
%{bin:js_of_ocaml}
98+
check-runtime
99+
+dynlink.js
100+
+toplevel.js
81101
%{dep:unix.bc}))))
82102

83103
(rule
@@ -91,5 +111,9 @@
91111
(action
92112
(with-stdout-to
93113
%{targets}
94-
(run %{bin:js_of_ocaml} check-runtime +dynlink.js +toplevel.js
114+
(run
115+
%{bin:js_of_ocaml}
116+
check-runtime
117+
+dynlink.js
118+
+toplevel.js
95119
%{dep:unix.bc}))))

compiler/tests-dynlink-js/dune

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@
3939
(target main.js)
4040
(enabled_if %{env:js-enabled=})
4141
(action
42-
(run %{bin:js_of_ocaml} --linkall %{read-strings:effects_flags.txt} -o
43-
%{target} %{dep:main.bc})))
42+
(run
43+
%{bin:js_of_ocaml}
44+
--linkall
45+
%{read-strings:effects_flags.txt}
46+
-o
47+
%{target}
48+
%{dep:main.bc})))
4449

4550
(rule
4651
(target plugin.cmo)
@@ -50,19 +55,28 @@
5055
(rule
5156
(target plugin.js)
5257
(action
53-
(run %{bin:js_of_ocaml} %{read-strings:effects_flags.txt}
58+
(run
59+
%{bin:js_of_ocaml}
60+
%{read-strings:effects_flags.txt}
5461
%{dep:./plugin.cmo})))
5562

5663
(rule
5764
(target plugin2.cma)
5865
(action
59-
(run %{bin:ocamlc} -a %{dep:./plugin2a.ml} %{dep:./plugin2b.ml} -o
66+
(run
67+
%{bin:ocamlc}
68+
-a
69+
%{dep:./plugin2a.ml}
70+
%{dep:./plugin2b.ml}
71+
-o
6072
plugin2.cma)))
6173

6274
(rule
6375
(target plugin2.js)
6476
(action
65-
(run %{bin:js_of_ocaml} %{read-strings:effects_flags.txt}
77+
(run
78+
%{bin:js_of_ocaml}
79+
%{read-strings:effects_flags.txt}
6680
%{dep:./plugin2.cma})))
6781

6882
(rule

compiler/tests-dynlink/dune

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
(enabled_if %{env:js-enabled=})
1111
(deps plugin.cmo export)
1212
(action
13-
(run %{bin:js_of_ocaml} --dynlink --export export --pretty -o %{target}
13+
(run
14+
%{bin:js_of_ocaml}
15+
--dynlink
16+
--export
17+
export
18+
--pretty
19+
-o
20+
%{target}
1421
%{dep:main.bc})))
1522

1623
(rule

compiler/tests-full/dune

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
(enabled_if
44
(= %{ocaml_version} "5.2.0"))
55
(action
6-
(run %{bin:js_of_ocaml} --pretty --debuginfo %{lib:stdlib:stdlib.cma} -o
6+
(run
7+
%{bin:js_of_ocaml}
8+
--pretty
9+
--debuginfo
10+
%{lib:stdlib:stdlib.cma}
11+
-o
712
%{targets})))
813

914
(rule
@@ -26,7 +31,12 @@
2631
(targets fs.output.js)
2732
(deps file1 file2)
2833
(action
29-
(run %{bin:js_of_ocaml} build-fs -o %{targets} file1:/static/file1
34+
(run
35+
%{bin:js_of_ocaml}
36+
build-fs
37+
-o
38+
%{targets}
39+
file1:/static/file1
3040
file2:/static/dir/file2)))
3141

3242
(rule

compiler/tests-jsoo/dune

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@
3434
(library
3535
(name jsoo_testsuite)
3636
(modules
37-
(:standard \ test_io test_floats test_marshal_compressed test_parsing
38-
calc_parser calc_lexer))
37+
(:standard
38+
\
39+
test_io
40+
test_floats
41+
test_marshal_compressed
42+
test_parsing
43+
calc_parser
44+
calc_lexer))
3945
(libraries unix compiler-libs.common js_of_ocaml-compiler)
4046
(foreign_stubs
4147
(language c)

0 commit comments

Comments
 (0)