Skip to content

Commit

Permalink
flambda-backend: Add dune target for dumpobj (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccasin authored Sep 19, 2023
1 parent 2089ec0 commit 4b2a6f6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/dune
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@
(section bin)
(package ocaml))

(rule
(target opnames.ml)
(deps make_opcodes.exe (universe))
(action (system "./make_opcodes.exe -opnames < ../../ocaml/runtime/caml/instruct.h > opnames.ml")))

(library
(name opnames)
(modes byte)
(modules opnames))

(executable
(name dumpobj)
(modes byte)
(modules dumpobj)
(libraries ocamlcommon ocamlbytecomp opnames))

(executable
(name cmpbyt)
(modes byte)
Expand Down

0 comments on commit 4b2a6f6

Please sign in to comment.