.TH DCR-BUILD 1 "2026-08-04" "dcr 0.8.4" "DCR Manual" .SH NAME dcr-build \- Compile a DCR project .SH SYNOPSIS .B dcr build [\fB\-\-debug\fR | \fB\-\-release\fR] [\fB\-\-target\fR \fI\fR] [\fB\-\-force\fR] [\fB\-\-clean\fR] [\fB\-\-verbose\fR] [\fB\-\-workspace\fR \fI\fR] [\fB\-\-print\-artifact\-path\fR] .SH DESCRIPTION Compiles the project. Default profile is .B \-\-debug . On success, updates .B .dcr/build-info.json and .B .dcr/toolchain.json when applicable. .SH OPTIONS .TP .B \-\-debug Build with debug profile (default). Enables debug symbols. .TP .B \-\-release Build with release profile. Enables full optimization. .TP .B \-\-target \fI\fR Cross-compile for the given target. .TP .B \-\-force Force a full rebuild, ignoring cached artifacts. .TP .B \-\-clean Clean before building. .TP .B \-\-verbose Print detailed build output including compiler commands. .TP .B \-\-workspace \fI\fR Build a specific workspace member. .TP .B \-\-print\-artifact\-path After a successful build, print the absolute path of the main artifact as a single line on stdout. .SH SEE ALSO .BR dcr (1), .BR dcr-gen (1)