mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 20:29:36 +00:00
- Workspace support (`[workspace]` with deps ordering) - `clean --all` for workspace members Changed: - Project root discovery for `build/run/clean` (searches parent dirs) - Workspace paths are excluded from root source scan - Build output now uses a Cargo-style `Compiling <name> v<version>` line - Build time now reports total time for the whole build stage (workspace included) - Cache hits are silent (no compile line when nothing is rebuilt) - Safer build cache: fingerprints include headers and resolved library files
50 lines
660 B
Markdown
50 lines
660 B
Markdown
# Build and run
|
|
|
|
## Build
|
|
|
|
Debug (default):
|
|
|
|
```sh
|
|
dcr build
|
|
# or
|
|
dcr build --debug
|
|
```
|
|
|
|
Release:
|
|
|
|
```sh
|
|
dcr build --release
|
|
```
|
|
|
|
## Run
|
|
|
|
```sh
|
|
dcr run
|
|
# or
|
|
dcr run --release
|
|
```
|
|
|
|
`dcr run` first builds, then launches the produced binary.
|
|
|
|
## Clean artifacts
|
|
|
|
```sh
|
|
dcr clean
|
|
```
|
|
|
|
Profile-only cleanup:
|
|
|
|
```sh
|
|
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 is parsed from the first command argument.
|
|
- Unknown profile flags produce an error.
|
|
- In workspace root, `clean --all` cleans all member projects.
|