paulgorman.org

< ^ txt

Sun Dec 21 10:00:01 UTC 2025 ======================================== Slept from eleven to nine. Woke for an hour or so around four. Partly cloudy in the morning then clearing. Highs in the upper 20s. West winds 5 to 15 mph with gusts up to 25 mph. # To do * [ ] Ask if Dr. Lipson takes my new health insurance (Priority Health). If so, schedule appointment? * [ ] set 401K contribution (As of Dec 4, the Vanguard website suggest my first contribution will be Dec 10. Emailed payroll Dec 19.) Started reading Richard Osman's The Impossible Fortune. https://github.com/goreleaser/example-zig-cgo > Cross-compiling with cgo involves building a Go program that uses C code and compiling it for a different target platform than the one on which the program is built. > Zig is a full-fledged C/C++ cross-compiler that leverages LLVM. > If you want to cross-compile for x86_64 Linux, for example, all you need to do is add `CC="zig cc -target x86_64-linux"` to the list of env variables when invoking go build. Example: > `CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="zig cc -target x86_64-linux" CXX="zig c++ -target x86_64-linux" go build` https://www.reddit.com/r/golang/comments/1ixdprg/crosscompiling_cgo_with_zig/ ``` CGO_ENABLED=1 GOOS=linux CC="zig cc -target x86_64-linux-musl" go build . ``` Long nap in the afternoon. Bought a few groceries at Meijer after dark. Servings: grains 3/4, vegetables+fruit 2/5, dairy+meat 5/4, nuts+beans 0/0.5 Brunch: Mandarin, chicken pot pie Lunch: cheese, banana Afternoon snack: corn chips

< ^ txt