Skip to content

Commit

Permalink
enable cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
df-wg committed Jan 30, 2025
1 parent 1ce7845 commit ea596b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build:
CGO_ENABLED=0 go build -trimpath -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/router/core.Version=$(VERSION) -X github.com/wundergraph/cosmo/router/core.Date=$(DATE) -X github.com/wundergraph/cosmo/router/core.Commit=$(COMMIT)" -a -o router cmd/router/main.go

build-race:
CGO_ENABLED=0 go build -trimpath -race -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/router/core.Version=$(VERSION) -X github.com/wundergraph/cosmo/router/core.Date=$(DATE) -X github.com/wundergraph/cosmo/router/core.Commit=$(COMMIT)" -a -o router cmd/router/main.go
CGO_ENABLED=1 go build -trimpath -race -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/router/core.Version=$(VERSION) -X github.com/wundergraph/cosmo/router/core.Date=$(DATE) -X github.com/wundergraph/cosmo/router/core.Commit=$(COMMIT)" -a -o router cmd/router/main.go

build-custom:
CGO_ENABLED=0 go build -trimpath -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/router/core.Version=$(VERSION) -X github.com/wundergraph/cosmo/router/core.Date=$(DATE) -X github.com/wundergraph/cosmo/router/core.Commit=$(COMMIT)" -a -o router cmd/custom/main.go
Expand Down

0 comments on commit ea596b9

Please sign in to comment.