# Target directory By default, DCR writes final artifacts to `target///` (where `` is `native` or target triple). You can override this with `build.out_dir`: ```toml [build] out_dir = "./dist" ``` ## Behavior - Binary mode: - Linux/macOS: `/` - Windows: `/.exe` - Static library mode: - Linux/macOS: `/lib.a` - Windows: `/.lib` ## Important detail `build.out_dir` changes only the final artifact location. Object cache and dependency sync directories still use `target///...`. ## Distinction from platform targets - `build.out_dir` — custom **output directory** path. - `build.target` / `--target ` CLI flag — **platform target** for cross-compilation (e.g. `x86_64-unknown-linux-gnu`, or short name `linux`). - `build.targets` (array) — list of **platform targets** to build simultaneously. - `[build.]` sections — **target-specific config overrides** (e.g. `[build.linux]`).