| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Rocqshim |
| 12 | |
| 13 | let () = |
| 14 | let args = List.tl (Array.to_list Sys.argv) in |
| 15 | let opts, args = Rocqshim.parse_opts args in |
| 16 | let () = Rocqshim.init opts args in |
| 17 | let prog = get_worker_path { package = "rocq-runtime"; basename = "rocqnative" } in |
| 18 | let () = if opts.debug_shim then Printf.eprintf "Using %s\n%!" prog in |
| 19 | let argv = Array.of_list (prog :: args) in |
| 20 | exec_or_create_process prog argv |