Enable metrics by default and pass build flags to statusgo-library (#1320)
This commit is contained in:
parent
fdcd20e14d
commit
2f65dd58f9
4
Makefile
4
Makefile
|
@ -35,7 +35,7 @@ GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
|
||||||
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
GIT_COMMIT = $(shell git rev-parse --short HEAD)
|
||||||
AUTHOR = $(shell echo $$USER)
|
AUTHOR = $(shell echo $$USER)
|
||||||
|
|
||||||
ENABLE_METRICS ?= false
|
ENABLE_METRICS ?= true
|
||||||
BUILD_FLAGS ?= $(shell echo "-ldflags '\
|
BUILD_FLAGS ?= $(shell echo "-ldflags '\
|
||||||
-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` \
|
-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` \
|
||||||
-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG) \
|
-X github.com/status-im/status-go/params.Version=$(RELEASE_TAG) \
|
||||||
|
@ -142,7 +142,7 @@ statusgo-ios-simulator: xgo ##@cross-compile Build status-go for iOS Simulator
|
||||||
|
|
||||||
statusgo-library: ##@cross-compile Build status-go as static library for current platform
|
statusgo-library: ##@cross-compile Build status-go as static library for current platform
|
||||||
@echo "Building static library..."
|
@echo "Building static library..."
|
||||||
go build -buildmode=c-archive -o $(GOBIN)/libstatus.a ./lib
|
go build -buildmode=c-archive -o $(GOBIN)/libstatus.a $(BUILD_FLAGS) ./lib
|
||||||
@echo "Static library built:"
|
@echo "Static library built:"
|
||||||
@ls -la $(GOBIN)/libstatus.*
|
@ls -la $(GOBIN)/libstatus.*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue