From 948e24c65b075409bdadf54b5ba4d546591dbe13 Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sun, 5 Jul 2026 17:38:17 +0800 Subject: [PATCH] New translations cross-to-windows.mdx (Ukrainian) [ci skip] --- .../docs/recipes/cross-to-windows.mdx.mdx | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs-crowdin-export/uk-UA/docs/recipes/cross-to-windows.mdx.mdx diff --git a/docs-crowdin-export/uk-UA/docs/recipes/cross-to-windows.mdx.mdx b/docs-crowdin-export/uk-UA/docs/recipes/cross-to-windows.mdx.mdx new file mode 100644 index 0000000..1250349 --- /dev/null +++ b/docs-crowdin-export/uk-UA/docs/recipes/cross-to-windows.mdx.mdx @@ -0,0 +1,49 @@ +--- +sidebar_label: Cross-compile to Windows +--- + +# Cross-Compile to Windows from Linux + +Building a Windows binary on Linux using mingw-w64. + +## Install toolchain + +```bash +# Ubuntu/Debian +sudo apt install mingw-w64 + +# Fedora +sudo dnf install mingw64-gcc mingw64-binutils +``` + +## Configuration + +```toml +[package] +name = "my-app" +version = "0.1.0" +type = "none" + +[build] +language = "c" +standard = "c11" +compiler = "clang" +kind = "bin" +target = "x86_64-pc-windows-gnu" # explicit mingw, not msvc +``` + +## Build + +```bash +dcr build --target x86_64-pc-windows-gnu --release +``` + +Artifact: `target/x86_64-pc-windows-gnu/release/my-app.exe`. + +## Custom toolchain + +```toml +[toolchain] +cc = "x86_64-w64-mingw32-gcc" +cxx = "x86_64-w64-mingw32-g++" +```