mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:59:36 +00:00
1.0 KiB
1.0 KiB
Flags & environment
This page summarizes runtime flags and environment variables that affect DCR behavior.
Build/run flags
Used with dcr build and dcr run:
--debug: select debug profile.--release: select release profile.--force: ignore incremental cache checks and rebuild.--clean: removetarget/<profile>andbuild.cleanpaths before build.
Notes:
- Flags can be passed in any order.
- Duplicate profile flags are rejected.
Clean flags
Used with dcr clean:
--debug/--release: clean only selected profile directory.--all: in workspace root, also clean all members.
Environment variables
Tool selection overrides:
DCR_COMPILER(all languages)DCR_CC,DCR_CXX,DCR_AS,DCR_AR,DCR_LD
Diagnostics:
DCR_DEBUG=1enables verbose build logging.
Quick examples
# Force full release rebuild
dcr build --release --force
# Clean before debug run
dcr run --clean --debug
# Use custom compiler from env
DCR_CC=clang-18 dcr build --debug