1

update README

This commit is contained in:
Motiejus Jakštys 2021-06-08 08:00:53 +03:00 committed by Motiejus Jakštys
parent 52559a9bb8
commit 61a0637562

View File

@ -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 And run the `bazel build` commands above. Take a look at `.build.yml` and see
how CI does it. 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
```