Environment Variables
DCR_COMPILER
Overrides the compiler for all languages. Highest priority.
export DCR_COMPILER=clang
dcr build
Compiler resolution priority:
DCR_COMPILER(env)DCR_CC/DCR_CXX/DCR_AS(env)[toolchain](dcr.toml)build.compiler(dcr.toml)PATH
DCR_CC / DCR_CXX / DCR_AS
Per-language override (lower priority than DCR_COMPILER, higher than [toolchain]).
export DCR_CC=gcc-14
export DCR_CXX=g++-14
export DCR_AS=arm-linux-gnueabihf-as
DCR_LD / DCR_AR
Override linker and archiver.
export DCR_LD=ld.lld
export DCR_AR=llvm-ar
DCR_DEBUG
Enables debug mode — prints all compilation commands to stderr before execution.
export DCR_DEBUG=1
dcr build
DCR_INDEX_PATH
Overrides the path to the registry index.json.
export DCR_INDEX_PATH=/custom/path/index.json
Default: ~/.dcr/index.json.