Files
dcr/docs/getting-started/build-and-run.md

822 B

Build and run

Build

Debug (default):

dcr build
# or
dcr build --debug
dcr build --debug --clean

Release:

dcr build --release

Run

dcr run
# or
dcr run --release
dcr run --release --force

dcr run first builds, then launches the produced binary.

Clean artifacts

dcr clean

Profile-only cleanup:

dcr clean --debug
dcr clean --release
dcr clean --all
dcr clean --release --all

Notes

  • run is unavailable for build.kind = "staticlib" and build.kind = "sharedlib".
  • Build profile flag (--debug / --release) can be passed in any argument position.
  • Unknown profile flags produce an error.
  • In workspace root, clean --all cleans all member projects.
  • --clean for build/run removes target/<profile> and paths from build.clean.