mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:19:37 +00:00
New translations cross-to-windows.mdx (Russian)
[ci skip]
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
sidebar_label: Cross-compile to Windows
|
sidebar_label: Кросс-компиляция для Windows
|
||||||
---
|
---
|
||||||
|
|
||||||
# Cross-Compile to Windows from Linux
|
# Кросс-компиляция для Windows на Linux
|
||||||
|
|
||||||
Building a Windows binary on Linux using mingw-w64.
|
Сборка Windows-бинаря на Linux с использованием mingw-w64.
|
||||||
|
|
||||||
## Install toolchain
|
## Установка toolchain
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Ubuntu/Debian
|
# Ubuntu/Debian
|
||||||
@@ -16,31 +16,29 @@ sudo apt install mingw-w64
|
|||||||
sudo dnf install mingw64-gcc mingw64-binutils
|
sudo dnf install mingw64-gcc mingw64-binutils
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Конфигурация
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[package]
|
[package]
|
||||||
name = "my-app"
|
name = "my-app"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
type = "none"
|
type = "app"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
language = "c"
|
language = "c"
|
||||||
standard = "c11"
|
standard = "c17"
|
||||||
compiler = "clang"
|
target = "windows"
|
||||||
kind = "bin"
|
|
||||||
target = "x86_64-pc-windows-gnu" # explicit mingw, not msvc
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build
|
## Сборка
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dcr build --target x86_64-pc-windows-gnu --release
|
dcr build --target windows --release
|
||||||
```
|
```
|
||||||
|
|
||||||
Artifact: `target/x86_64-pc-windows-gnu/release/my-app.exe`.
|
Артефакт: `target/x86_64-pc-windows-gnu/release/my-app.exe`.
|
||||||
|
|
||||||
## Custom toolchain
|
## Кастомный toolchain (опционально)
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[toolchain]
|
[toolchain]
|
||||||
|
|||||||
Reference in New Issue
Block a user