File: dune

package info (click to toggle)
js-of-ocaml 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 37,932 kB
  • sloc: ml: 135,957; javascript: 58,364; ansic: 437; makefile: 422; sh: 12; perl: 4
file content (61 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (2)
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
(env
 (with-effects-double-translation)
 (with-effects)
 (_
  (js_of_ocaml
   (flags
    (:standard --effects cps)))))

(library
 (name jsoo_testsuite_effect)
 (enabled_if
  (>= %{ocaml_version} 5))
 (inline_tests
  (modes js wasm best))
 (modules
  (:standard
   \
   assume_no_perform
   assume_no_perform_unhandled
   assume_no_perform_nested_handler
   deep_state
   effects))
 (preprocess
  (pps ppx_expect)))

(tests
 (build_if
  (>= %{ocaml_version} 5))
 (names effects)
 (modules effects)
 (modes js wasm))

(tests
 (build_if
  (>= %{ocaml_version} 5))
 (names
  assume_no_perform
  assume_no_perform_unhandled
  assume_no_perform_nested_handler)
 (modules
  assume_no_perform
  assume_no_perform_unhandled
  assume_no_perform_nested_handler)
 (libraries jsoo_runtime)
 (action
  (ignore-outputs
   (with-accepted-exit-codes
    0
    (run node %{test}))))
 (modes js wasm))

(executable
 (name deep_state)
 (enabled_if
  (>= %{ocaml_version} 5))
 (modules deep_state)
 (js_of_ocaml
  (compilation_mode whole_program))
 (wasm_of_ocaml
  (compilation_mode whole_program))
 (modes js wasm))