-
Notifications
You must be signed in to change notification settings - Fork 96
Build instructions
Clark Gaebel edited this page Mar 28, 2022
·
21 revisions
magic-trace is written in OCaml. It uses opam as its package manager, and dune as its build system.
bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"
opam init --bare
- Select the 4.13.1 OCaml compiler
opam switch create magic-trace 4.13.1
eval $(opam env --switch=magic-trace)
- Clone the magic-trace repo
git clone https://github.com/janestreet/magic-trace.git
cd magic-trace
- Install dependencies
opam install ./magic-trace.opam --deps-only
opam install ocamlformat
- Build, test, and autoformat it
dune build @default @runtest @fmt --auto-promote
- Run it
_build/default/bin/magic_trace_bin.exe -help