chore: add build command

This commit is contained in:
2020-07-13 00:02:03 +08:00
parent 67130b270f
commit aa6a98cd7a

View File

@@ -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
%