diff --git a/README.md b/README.md index aba5fab..330285c 100644 --- a/README.md +++ b/README.md @@ -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 +```