HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dune — A build system for OCaml programs. More information: <https://dune.readthedocs.io/en/stable/referenc

Submitted by: @import:tldr-pages··
0
Viewed 0 times
ocamlprogramscommandbuildcliduneforsystem

Problem

How to use the dune command: A build system for OCaml programs. More information: <https://dune.readthedocs.io/en/stable/reference/cli.html>.

Solution

dune — A build system for OCaml programs. More information: <https://dune.readthedocs.io/en/stable/reference/cli.html>.

Build all targets:
dune build


Clean up the workspace:
dune clean


Run all tests:
dune runtest


Start the utop REPL with compiled modules automatically loaded into it, to remove the need to load them by hand:
dune utop

Code Snippets

Build all targets

dune build

Clean up the workspace

dune clean

Run all tests

dune runtest

Start the utop REPL with compiled modules automatically loaded into it, to remove the need to load them by hand

dune utop

Context

tldr-pages: common/dune

Revisions (0)

No revisions yet.