mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-22 23:49:36 +00:00
New translations cross-compilation.mdx (Russian)
[ci skip]
This commit is contained in:
@@ -4,12 +4,12 @@ sidebar_label: Кросс-компиляция
|
|||||||
|
|
||||||
# Кросс-компиляция
|
# Кросс-компиляция
|
||||||
|
|
||||||
## Short Names
|
## Сокращённые названия
|
||||||
|
|
||||||
DCR поддерживает короткие имена платформ, которые автоматически раскрываются в полные triples:
|
DCR поддерживает короткие имена платформ, которые автоматически раскрываются в полные triples:
|
||||||
|
|
||||||
| Short Name | Full Triple |
|
| Краткое название | Полный тройной |
|
||||||
| ---------- | -------------------------- |
|
| ---------------- | -------------------------- |
|
||||||
| `linux` | `x86_64-unknown-linux-gnu` |
|
| `linux` | `x86_64-unknown-linux-gnu` |
|
||||||
| `macos` | `x86_64-apple-darwin` |
|
| `macos` | `x86_64-apple-darwin` |
|
||||||
| `windows` | `x86_64-pc-windows-msvc` |
|
| `windows` | `x86_64-pc-windows-msvc` |
|
||||||
@@ -18,7 +18,7 @@ DCR поддерживает короткие имена платформ, ко
|
|||||||
dcr build --target windows
|
dcr build --target windows
|
||||||
```
|
```
|
||||||
|
|
||||||
## Full Triples
|
## Полные тройки
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dcr build --target aarch64-unknown-linux-gnu
|
dcr build --target aarch64-unknown-linux-gnu
|
||||||
@@ -39,12 +39,12 @@ target = "aarch64-unknown-linux-gnu"
|
|||||||
|
|
||||||
## Bare-Metal
|
## 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).
|
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
|
```toml
|
||||||
[build]
|
[build]
|
||||||
@@ -55,15 +55,15 @@ freestanding = true
|
|||||||
dcr build --target aarch64-none-elf
|
dcr build --target aarch64-none-elf
|
||||||
```
|
```
|
||||||
|
|
||||||
## Target Directory
|
## Целевой каталог
|
||||||
|
|
||||||
On Linux with explicit target:
|
В Linux с явным указанием цели:
|
||||||
|
|
||||||
```
|
```
|
||||||
target/<triple>/<profile>/
|
target/<triple>/<profile>/
|
||||||
```
|
```
|
||||||
|
|
||||||
On macOS/Windows or without target:
|
В macOS/Windows или без указания целевой платформы:
|
||||||
|
|
||||||
```
|
```
|
||||||
target/<profile>/
|
target/<profile>/
|
||||||
|
|||||||
Reference in New Issue
Block a user