Skip to content

Commit

Permalink
Revert "chore: do not use zig cc on darwin cross compilation"
Browse files Browse the repository at this point in the history
This reverts commit af77f22.
  • Loading branch information
Peefy committed Sep 16, 2024
1 parent af77f22 commit 7bce8da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# - ./scripts/install-kcl-lsp-all.sh

# .goreleaser.yml
builds:
- id: goreleaser-zig-cross-compilation-macos
main: ./cmd/kcl/main.go
Expand All @@ -18,6 +20,11 @@ builds:
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
env:
- CGO_ENABLED=1
- >-
{{- if eq .Os "darwin" }}
{{- if eq .Arch "amd64"}}CC=zig c++ -target x86_64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
{{- if eq .Arch "arm64"}}CC=zig c++ -target aarch64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
{{- end }}
- id: goreleaser-zig-cross-compilation-linux
main: ./cmd/kcl/main.go
Expand Down

0 comments on commit 7bce8da

Please sign in to comment.