jrossi / zigtool

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zigtool

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

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

go install github.com/dosgo/zigtool/zigc++@latest

zigc++ requires golang 1.17 //There are bugs below 1.17, "+" is a special character.

set CC=zigcc set CXX=zigc++

Manually set the compilation target

set ZIGTARGET=x86_64-windows-gnu

About

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

License:MIT License


Languages

Language:Go 100.0%