chore: add build command
This commit is contained in:
18
README.md
18
README.md
@@ -6,4 +6,22 @@ The Zig Programming Language - https://ziglang.org/
|
||||
|
||||
Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
Build:
|
||||
```
|
||||
% zig build-exe hello.zig
|
||||
```
|
||||
|
||||
Build small binary:
|
||||
```
|
||||
% zig build-exe hello.zig --release-small --strip --single-threaded
|
||||
```
|
||||
|
||||
Cross compile:
|
||||
```
|
||||
% zig build-exe hello.zig --release-small --strip --single-threaded -target x86_64-windows
|
||||
%
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user