mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
Disable static compilation for osx + minor optimizations
This commit is contained in:
@@ -3,12 +3,17 @@ GOCMD=go
|
||||
GOBUILD=$(GOCMD) build
|
||||
GOMOD=$(GOCMD) mod
|
||||
GOTEST=$(GOCMD) test
|
||||
GOGET=$(GOCMD) get
|
||||
GOFLAGS := -v
|
||||
LDFLAGS := -s -w
|
||||
|
||||
ifneq ($(shell go env GOOS),darwin)
|
||||
LDFLAGS := -extldflags "-static"
|
||||
endif
|
||||
|
||||
all: build
|
||||
build:
|
||||
$(GOBUILD) -v -ldflags="-extldflags=-static" -o "httpx" cmd/httpx/httpx.go
|
||||
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "httpx" cmd/httpx/httpx.go
|
||||
test:
|
||||
$(GOTEST) -v ./...
|
||||
$(GOTEST) $(GOFLAGS) ./...
|
||||
tidy:
|
||||
$(GOMOD) tidy
|
||||
$(GOMOD) tidy
|
||||
|
||||
Reference in New Issue
Block a user