(* -*- tuareg -*- *)

let preprocess =
  match Sys.getenv "BISECT_ENABLE" with
  | "yes" -> "(preprocess (pps bisect_ppx))"
  | _ -> ""
  | exception Not_found -> ""

let () =
  Jbuild_plugin.V1.send @@
    {|
(library
 (name odoc_xref)
 (public_name odoc.xref)
    |} ^ preprocess ^ {|
 (libraries compiler-libs.common odoc_model))
    |}
