|
1 | 1 | (include_subdirs unqualified)
|
2 | 2 |
|
3 | 3 | (library
|
4 |
| - (public_name wasm) |
5 |
| - ; The 'wasm' module shall not be part of the library, as it would start the |
6 |
| - ; Wasm REPL every time in all the dependencies. |
7 |
| - ; We exclude the 'wast' module as it is only used for the JS build. |
8 |
| - ; 'smallint' is a separate test module. |
9 |
| - (modules :standard \ main wasm smallint wast) |
10 |
| - (libraries menhirLib)) |
| 4 | + (public_name wasm) |
| 5 | + ; The 'wasm' module shall not be part of the library, as it would start the |
| 6 | + ; Wasm REPL every time in all the dependencies. |
| 7 | + ; We exclude the 'wast' module as it is only used for the JS build. |
| 8 | + ; 'smallint' is a separate test module. |
| 9 | + (modules :standard \ main wasm smallint wast) |
| 10 | + (libraries menhirLib) |
| 11 | +) |
11 | 12 |
|
12 | 13 | (executable
|
13 |
| - (public_name wasm) |
14 |
| - (modules wasm) |
15 |
| - (libraries wasm) |
16 |
| - (flags |
17 |
| - (-open Wasm))) |
| 14 | + (public_name wasm) |
| 15 | + (modules wasm) |
| 16 | + (libraries wasm) |
| 17 | + (flags (-open Wasm)) |
| 18 | +) |
18 | 19 |
|
19 | 20 | (executable
|
20 |
| - (name smallint) |
21 |
| - (modules smallint) |
22 |
| - (libraries wasm) |
23 |
| - (flags |
24 |
| - (-open Wasm))) |
| 21 | + (name smallint) |
| 22 | + (modules smallint) |
| 23 | + (libraries wasm) |
| 24 | + (flags (-open Wasm)) |
| 25 | +) |
25 | 26 |
|
26 | 27 | (executable
|
27 | 28 | (name wast)
|
28 | 29 | (modules wast)
|
29 | 30 | (modes js)
|
30 | 31 | (libraries js_of_ocaml wasm)
|
31 |
| - (preprocess (pps js_of_ocaml-ppx))) |
| 32 | + (preprocess (pps js_of_ocaml-ppx)) |
| 33 | +) |
32 | 34 |
|
33 | 35 | (rule
|
34 | 36 | (targets wasm.ml)
|
35 | 37 | (deps main/main.ml)
|
36 |
| - (action (copy main/main.ml wasm.ml))) |
| 38 | + (action (copy main/main.ml wasm.ml)) |
| 39 | +) |
37 | 40 |
|
38 |
| -(subdir |
39 |
| - text |
40 |
| - (rule |
41 |
| - (target lexer.ml) |
42 |
| - (deps lexer.mll) |
43 |
| - (action |
44 |
| - (chdir |
45 |
| - %{workspace_root} |
46 |
| - (run %{bin:ocamllex} -ml -q -o %{target} %{deps})))) |
47 |
| - (menhir |
48 |
| - (modules parser))) |
| 41 | +(subdir text |
| 42 | + (rule |
| 43 | + (target lexer.ml) |
| 44 | + (deps lexer.mll) |
| 45 | + (action |
| 46 | + (chdir %{workspace_root} |
| 47 | + (run %{bin:ocamllex} -ml -q -o %{target} %{deps}) |
| 48 | + ) |
| 49 | + ) |
| 50 | + ) |
| 51 | + (menhir (modules parser)) |
| 52 | +) |
49 | 53 |
|
50 |
| -(env |
51 |
| - (_ |
52 |
| - (flags |
53 |
| - (-w +a-4-27-42-44-45-70 -warn-error +a-3)))) |
| 54 | +(env (_ (flags (-w +a-4-27-42-44-45-70 -warn-error +a-3)))) |
54 | 55 |
|
55 | 56 | (rule
|
56 |
| - (alias runtest) |
57 |
| - (deps |
58 |
| - ./wasm.exe |
59 |
| - ./smallint.exe |
60 |
| - (source_tree ../test)) |
61 |
| - (action |
62 |
| - (progn |
63 |
| - (run ../test/core/run.py --wasm ./wasm.exe) |
64 |
| - (run ./smallint.exe)))) |
| 57 | + (alias runtest) |
| 58 | + (deps |
| 59 | + ./wasm.exe |
| 60 | + ./smallint.exe |
| 61 | + (source_tree ../test) |
| 62 | + ) |
| 63 | + (action |
| 64 | + (progn |
| 65 | + (run ../test/core/run.py --wasm ./wasm.exe) |
| 66 | + (run ./smallint.exe) |
| 67 | + ) |
| 68 | + ) |
| 69 | +) |
0 commit comments