From aaa6c99795dab553de827af72e40d89790a7d891 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Tue, 7 Jul 2026 11:22:13 +0800 Subject: [PATCH] New translations environment-variables.mdx (German) [ci skip] --- .../reference/environment-variables.mdx.mdx | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 docs-crowdin-export/de-DE/docs/reference/environment-variables.mdx.mdx diff --git a/docs-crowdin-export/de-DE/docs/reference/environment-variables.mdx.mdx b/docs-crowdin-export/de-DE/docs/reference/environment-variables.mdx.mdx new file mode 100644 index 0000000..8b75814 --- /dev/null +++ b/docs-crowdin-export/de-DE/docs/reference/environment-variables.mdx.mdx @@ -0,0 +1,60 @@ +--- +sidebar_label: Environment variables +--- + +# Environment Variables + +## DCR_COMPILER + +Overrides the compiler for all languages. **Highest priority.** + +```bash +export DCR_COMPILER=clang +dcr build +``` + +Compiler resolution priority: + +1. `DCR_COMPILER` (env) +2. `DCR_CC` / `DCR_CXX` / `DCR_AS` (env) +3. `[toolchain]` (dcr.toml) +4. `build.compiler` (dcr.toml) +5. `PATH` + +## DCR_CC / DCR_CXX / DCR_AS + +Per-language override (lower priority than `DCR_COMPILER`, higher than `[toolchain]`). + +```bash +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. + +```bash +export DCR_LD=ld.lld +export DCR_AR=llvm-ar +``` + +## DCR_DEBUG + +Enables debug mode — prints all compilation commands to stderr before execution. + +```bash +export DCR_DEBUG=1 +dcr build +``` + +## DCR_INDEX_PATH + +Overrides the path to the registry `index.json`. + +```bash +export DCR_INDEX_PATH=/custom/path/index.json +``` + +Default: `~/.dcr/index.json`.