Enable metrics by default and pass build flags to statusgo-library (#1320)

This commit is contained in:
Adam Babik 2018-12-14 12:16:45 +01:00 committed by GitHub
parent fdcd20e14d
commit 2f65dd58f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
GIT_COMMIT = $(shell git rev-parse --short HEAD)
AUTHOR = $(shell echo $$USER)
ENABLE_METRICS ?= false
ENABLE_METRICS ?= true
BUILD_FLAGS ?= $(shell echo "-ldflags '\
-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` \
-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
@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:"
@ls -la $(GOBIN)/libstatus.*