  $ dune build --display short foo.vos
          rocq .basic.theory.d
          rocq foo.vos

  $ dune clean
  $ dune build --display short bar.vos
          rocq .basic.theory.d
          rocq foo.vos
          rocq bar.vos

  $ cat foo.v | dune rocq top -- foo.v 2>/dev/null | sed '/^Welcome to Rocq/d'
  mynat is defined
  $ cat bar.v | dune rocq top -- bar.v 2>/dev/null | sed '/^Welcome to Rocq/d'
  mynum is defined

  $ dune clean
  $ dune build --display short --debug-dependency-path @all
          rocq .basic.theory.d
          rocq foo.vos
          rocq bar.vos
  $ dune build --debug-dependency-path @default
  lib: [
    "_build/install/default/lib/base/META"
    "_build/install/default/lib/base/dune-package"
    "_build/install/default/lib/base/opam"
  ]
  lib_root: [
    "_build/install/default/lib/coq/user-contrib/basic/bar.v" {"coq/user-contrib/basic/bar.v"}
    "_build/install/default/lib/coq/user-contrib/basic/bar.vos" {"coq/user-contrib/basic/bar.vos"}
    "_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"}
    "_build/install/default/lib/coq/user-contrib/basic/foo.vos" {"coq/user-contrib/basic/foo.vos"}
  ]

Checking that we can go back to vo mode (without cleaning).

  $ mv dune-vo dune
  $ dune build --display short --debug-dependency-path @all
          rocq foo.{glob,vo}
          rocq bar.{glob,vo}
  $ dune build --debug-dependency-path @default
  lib: [
    "_build/install/default/lib/base/META"
    "_build/install/default/lib/base/dune-package"
    "_build/install/default/lib/base/opam"
  ]
  lib_root: [
    "_build/install/default/lib/coq/user-contrib/basic/bar.glob" {"coq/user-contrib/basic/bar.glob"}
    "_build/install/default/lib/coq/user-contrib/basic/bar.v" {"coq/user-contrib/basic/bar.v"}
    "_build/install/default/lib/coq/user-contrib/basic/bar.vo" {"coq/user-contrib/basic/bar.vo"}
    "_build/install/default/lib/coq/user-contrib/basic/foo.glob" {"coq/user-contrib/basic/foo.glob"}
    "_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"}
    "_build/install/default/lib/coq/user-contrib/basic/foo.vo" {"coq/user-contrib/basic/foo.vo"}
  ]
