mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
zig: add Spanish translation (#15299)
This commit is contained in:
parent
bdf7bb923e
commit
e1b6b0d109
1 changed files with 36 additions and 0 deletions
36
pages.es/common/zig.md
Normal file
36
pages.es/common/zig.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# zig
|
||||
|
||||
> El compilador Zig y la cadena de herramientas.
|
||||
> Más información: <https://ziglang.org>.
|
||||
|
||||
- Compila el proyecto en el directorio actual:
|
||||
|
||||
`zig build`
|
||||
|
||||
- Compila y ejecuta el proyecto en el directorio actual:
|
||||
|
||||
`zig build run`
|
||||
|
||||
- Inicializa un proyecto `zig build` con biblioteca y ejecutable:
|
||||
|
||||
`zig init`
|
||||
|
||||
- Crea y ejecuta una compilación de pruebas:
|
||||
|
||||
`zig test {{ruta/al/archivo.zig}}`
|
||||
|
||||
- Hace compilación cruzada, arma y ejecuta un proyecto para la arquitectura `x86_64` y el sistema operativo `windows`:
|
||||
|
||||
`zig build run -fwine -Dtarget=x86_64-windows`
|
||||
|
||||
- Reformatea código fuente Zig en forma canónica:
|
||||
|
||||
`zig fmt {{ruta/al/archivo.zig}}`
|
||||
|
||||
- Traduce un archivo C a `zig`:
|
||||
|
||||
`zig translate-c -lc {{ruta/al/archivo.c}}`
|
||||
|
||||
- Usa Zig como compilador de C++:
|
||||
|
||||
`zig c++ {{ruta/al/archivo.cpp}}`
|
Loading…
Add table
Reference in a new issue