From 43bda15f101c37fbb8720e3f64ea4631d2b1bd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 8 Jun 2021 15:56:58 +0300 Subject: [PATCH] update README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1362d6..1cadf61 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![builds.sr.ht status](https://builds.sr.ht/~motiejus/bazel-zig-toolchain.svg)](https://builds.sr.ht/~motiejus/bazel-zig-toolchain) + # Bazel zig cc toolchain for Go This is a prototype zig-cc toolchain that can compile cgo programs with these c @@ -76,6 +78,10 @@ exec zig cc -target x86_64-macos-gnu "$@" ``` Build: -`` +``` GOOS=darwin GOARCH=amd64 CC=zcc go build -ldflags "-linkmode external -extldflags -static" hello.go ``` + +# Known Issues + +- [golang/go #46644: cmd/link: with CC=zig: SIGSERV when cross-compiling to darwin/amd64](https://github.com/golang/go/issues/46644)