(library
 (public_name mmap)
 (modules mmap)
 (libraries unix bigarray-compat))

(rule
 (with-stdout-to selected (run %{ocaml} %{dep:which_mmap.ml} %{ocaml_version})))

(rule
 (copy# %{read:selected} mmap.ml))
