Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# zigtool
The golang tool of the zig compiler automatically compiles different targets according to the GOOS GOARCH environment variable. You need to install zig.

The golang tool of the zig compiler automatically compiles different targets according to the `GOOS` and `GOARCH` environment variables. You need to install zig.

```bash
go install github.com/dosgo/zigtool/zigcc@latest

go install github.com/dosgo/zigtool/zigcpp@latest
```




```bash
set CC=zigcc
set CXX=zigcpp
```

Manually set the compilation target

```bash
set ZIGTARGET=x86_64-windows-gnu
```