File: dune

package info (click to toggle)
ocaml-multicore-bench 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: ml: 1,476; sh: 60; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
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
(* -*- tuareg -*- *)

let maybe_domain_shims =
  if Jbuild_plugin.V1.ocaml_version < "5" then "domain_shims" else ""

let () =
  Jbuild_plugin.V1.send
  @@ {|

(rule
 (enabled_if
  (< %{ocaml_version} 4.13.0))
 (action
  (copy int_ext.ocaml_lt_4_13.ml int_ext.ml)))

(rule
 (enabled_if
  (>= %{ocaml_version} 4.13.0))
 (action
  (copy int_ext.ocaml_ge_4_13.ml int_ext.ml)))

(library
 (public_name multicore-bench)
 (name multicore_bench)
 (libraries
  backoff
  multicore-magic
  domain-local-await
  mtime
  mtime.clock.os
  yojson
  str |}
  ^ maybe_domain_shims
  ^ {| ))

(mdx
 (libraries multicore-bench)
 (files multicore_bench.mli))
|}