Skip to content

Commit 6f2cd91

Browse files
radimclaude
andcommitted
fix: set osxcross CC for darwin cross-compile in goreleaser
Darwin builds were inheriting the goreleaser-cross container's default linux gcc, which rejects clang's -arch flag. Point CC at o64-clang / oa64-clang so CGO picks up the osxcross toolchain. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 72cbd16 commit 6f2cd91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ builds:
1414
binary: qshape
1515
env:
1616
- CGO_ENABLED=1
17+
- 'CC={{- if eq .Arch "arm64" -}}oa64-clang{{- else -}}o64-clang{{- end -}}'
1718
goos: [darwin]
1819
goarch: [amd64, arm64]
1920
ldflags:

0 commit comments

Comments
 (0)