Files
dcr/docs/getting-started/build-and-run.md
2026-02-26 18:09:07 +08:00

524 B

Build and run

Build

Debug (default):

dcr build
# or
dcr build --debug

Release:

dcr build --release

Run

dcr run
# or
dcr run --release

dcr run first builds, then launches the produced binary.

Clean artifacts

dcr clean

Profile-only cleanup:

dcr clean --debug
dcr clean --release

Notes

  • run is unavailable for build.kind = "staticlib".
  • Build profile flag is parsed from the first command argument.
  • Unknown profile flags produce an error.