Skip to content

Go CGO cross compiler( AliYun )

Latest
Compare
Choose a tag to compare
@Ran-Xing Ran-Xing released this 30 Sep 10:27
· 1 commit to main since this release
cc6bded

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