mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:39:37 +00:00
New translations cross-compilation.mdx (Russian)
[ci skip]
This commit is contained in:
@@ -4,21 +4,21 @@ sidebar_label: Кросс-компиляция
|
||||
|
||||
# Кросс-компиляция
|
||||
|
||||
## Short Names
|
||||
## Сокращённые названия
|
||||
|
||||
DCR поддерживает короткие имена платформ, которые автоматически раскрываются в полные triples:
|
||||
|
||||
| Short Name | Full Triple |
|
||||
| ---------- | -------------------------- |
|
||||
| `linux` | `x86_64-unknown-linux-gnu` |
|
||||
| `macos` | `x86_64-apple-darwin` |
|
||||
| `windows` | `x86_64-pc-windows-msvc` |
|
||||
| Краткое название | Полный тройной |
|
||||
| ---------------- | -------------------------- |
|
||||
| `linux` | `x86_64-unknown-linux-gnu` |
|
||||
| `macos` | `x86_64-apple-darwin` |
|
||||
| `windows` | `x86_64-pc-windows-msvc` |
|
||||
|
||||
```bash
|
||||
dcr build --target windows
|
||||
```
|
||||
|
||||
## Full Triples
|
||||
## Полные тройки
|
||||
|
||||
```bash
|
||||
dcr build --target aarch64-unknown-linux-gnu
|
||||
@@ -39,12 +39,12 @@ target = "aarch64-unknown-linux-gnu"
|
||||
|
||||
## Bare-Metal
|
||||
|
||||
For targets containing `none`, `-elf`, `eabi`, or `baremetal`, DCR automatically:
|
||||
Для целевых платформ, содержащих значения `none`, `-elf`, `eabi` или `baremetal`, DCR автоматически:
|
||||
|
||||
1. Для none/elf/eabi/bare-metal target-ов отключаются DCR default флаги (нет `-I` системных путей, нет `-l` libc).
|
||||
2. **Injects `-ffreestanding`** at compile time and `-nostdlib -static` at link time
|
||||
2. **Вставляет `-ffreestanding`** на этапе компиляции и `-nostdlib -static` на этапе линковки
|
||||
|
||||
You can also enable freestanding mode explicitly:
|
||||
Кроме того, можно явно включить автономный режим:
|
||||
|
||||
```toml
|
||||
[build]
|
||||
@@ -55,15 +55,15 @@ freestanding = true
|
||||
dcr build --target aarch64-none-elf
|
||||
```
|
||||
|
||||
## Target Directory
|
||||
## Целевой каталог
|
||||
|
||||
On Linux with explicit target:
|
||||
В Linux с явным указанием цели:
|
||||
|
||||
```
|
||||
target/<triple>/<profile>/
|
||||
```
|
||||
|
||||
On macOS/Windows or without target:
|
||||
В macOS/Windows или без указания целевой платформы:
|
||||
|
||||
```
|
||||
target/<profile>/
|
||||
|
||||
Reference in New Issue
Block a user