Skip to content

Commit 08b32eb

Browse files
committed
*: add -ldflags=-s for go1.7.x/Darwin
1 parent 16ebf1b commit 08b32eb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ os:
77
go:
88
- 1.9.x
99
- 1.8.x
10+
- 1.7.x
1011

1112
script:
1213
- make

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ GO_TEST += -tags "use_jemalloc"
1313
build-deps: build-jemalloc
1414
endif
1515

16+
ifeq ($(UNAME_S),Darwin)
17+
GO_BUILD += -ldflags="-s"
18+
GO_TEST += -ldflags="-s"
19+
endif
20+
1621
build-all: redis-sync redis-dump redis-decode redis-restore
1722

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

2025
build-deps:
2126
@mkdir -p bin && bash version

0 commit comments

Comments
 (0)