Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 83fe66a

Browse files
Stephen GutekanstStephen Gutekanst
Stephen Gutekanst
authored and
Stephen Gutekanst
committed
Taskfile: build x86_64-linux binaries using musl
Should fix dependency on glibc 2.5 otherwise: ``` /Users/slimsag/.asdf/installs/golang/1.18/go/pkg/tool/darwin_amd64/link: running zig failed: exit status 1 ld.lld: error: undefined symbol: getrandom ``` Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
1 parent 52bc97e commit 83fe66a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ tasks:
182182
desc: "Cross compile to x86_64-linux using Zig"
183183
cmds:
184184
- rm -f libs/sinter/bindings/sinter-go/go.mod
185-
- cd libs/sinter && zig build -Drelease-fast=true -Dtarget=x86_64-linux
185+
- cd libs/sinter && zig build -Drelease-fast=true -Dtarget=x86_64-linux-musl
186186
- go build -o out/doctree-x86_64-linux ./cmd/doctree/
187187
env:
188188
CGO_ENABLED: "1"
189189
GOOS: "linux"
190190
GOARCH: "amd64"
191-
CC: "zig cc -target x86_64-linux-gnu"
192-
CXX: "zig c++ -target x86_64-linux-gnu"
191+
CC: "zig cc -target x86_64-linux-musl"
192+
CXX: "zig c++ -target x86_64-linux-musl"
193193
sources:
194194
- ./**/*.go
195195
- ./frontend/public/**

0 commit comments

Comments
 (0)