Skip to content

Commit af77f22

Browse files
committed
chore: do not use zig cc on darwin cross compilation
Signed-off-by: peefy <[email protected]>
1 parent 66c7011 commit af77f22

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.goreleaser.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ before:
44
hooks:
55
# You may remove this if you don't use go modules.
66
- go mod tidy
7-
# - ./scripts/install-kcl-lsp-all.sh
87

9-
# .goreleaser.yml
108
builds:
119
- id: goreleaser-zig-cross-compilation-macos
1210
main: ./cmd/kcl/main.go
@@ -20,11 +18,6 @@ builds:
2018
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
2119
env:
2220
- CGO_ENABLED=1
23-
- >-
24-
{{- if eq .Os "darwin" }}
25-
{{- if eq .Arch "amd64"}}CC=zig c++ -target x86_64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
26-
{{- if eq .Arch "arm64"}}CC=zig c++ -target aarch64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
27-
{{- end }}
2821

2922
- id: goreleaser-zig-cross-compilation-linux
3023
main: ./cmd/kcl/main.go

0 commit comments

Comments
 (0)