By: crazy-max/xgo
mirror: xrsec/xgo
Example:
# Makefile
build:
@if [ ! -e "example-linux-amd64" ]; then xgo --targets=linux/amd64 -ldflags="-s -w -extldflags -static" ./example; fi
# bash
xgo --targets=darwin/amd64,darwin/arm64 -ldflags="-s -w -extldflags -static" ./example