From 61a0637562a32834e40236a7aa9aa92f57dae6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 8 Jun 2021 08:00:53 +0300 Subject: [PATCH] update README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 99b6faf..e1362d6 100644 --- a/README.md +++ b/README.md @@ -66,3 +66,16 @@ $ docker run -ti --rm -v $(pwd):/x -w /x debian:buster-slim And run the `bazel build` commands above. Take a look at `.build.yml` and see how CI does it. + +# Appendix: compiling manually + +zcc +``` +#!/bin/bash +exec zig cc -target x86_64-macos-gnu "$@" +``` + +Build: +`` +GOOS=darwin GOARCH=amd64 CC=zcc go build -ldflags "-linkmode external -extldflags -static" hello.go +```