Skip to content

Commit

Permalink
*: add -ldflags=-s for go1.7.x/Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Jan 2, 2018
1 parent 16ebf1b commit 08b32eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ os:
go:
- 1.9.x
- 1.8.x
- 1.7.x

script:
- make
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ GO_TEST += -tags "use_jemalloc"
build-deps: build-jemalloc
endif

ifeq ($(UNAME_S),Darwin)
GO_BUILD += -ldflags="-s"
GO_TEST += -ldflags="-s"
endif

build-all: redis-sync redis-dump redis-decode redis-restore

GO_SRCS := cmd/version.go cmd/flags.go cmd/libs.go cmd/iolibs.go
GO_SRCS := $(shell bash -c 'echo cmd/{version,flags,libs,iolibs}.go')

build-deps:
@mkdir -p bin && bash version
Expand Down

0 comments on commit 08b32eb

Please sign in to comment.