(* -*- tuareg -*- *)

let maybe_domain_shims_and_threads =
  if Jbuild_plugin.V1.ocaml_version < "5" then "domain_shims threads.posix"
  else ""

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

(test
 (name main)
 (action
  (run %{test} -brief))
 (libraries
  multicore-bench
  backoff
  unix
  multicore-magic |}
  ^ maybe_domain_shims_and_threads ^ {| ))
|}
