Skip to content

Commit 4d17a31

Browse files
committed
rdb: cgo_jemalloc -> use_jemalloc
1 parent 032f7f3 commit 4d17a31

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ GO_BUILD := go build -i
88
GO_TEST := go test
99

1010
ifeq ($(UNAME_S),Linux)
11-
GO_BUILD += -tags "cgo_jemalloc"
12-
GO_TEST += -tags "cgo_jemalloc"
11+
GO_BUILD += -tags "use_jemalloc"
12+
GO_TEST += -tags "use_jemalloc"
1313
build-deps: build-jemalloc
1414
endif
1515

pkg/rdb/cgo_redis.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ package rdb
1010
// #cgo LDFLAGS: -lm
1111
// #cgo linux LDFLAGS: -lrt
1212
//
13-
// #cgo cgo_jemalloc CFLAGS: -DUSE_JEMALLOC
14-
// #cgo cgo_jemalloc CFLAGS: -I../../third_party/jemalloc/include/
15-
// #cgo cgo_jemalloc LDFLAGS: -L../../third_party/jemalloc/lib/ -ljemalloc_pic
13+
// #cgo use_jemalloc CFLAGS: -DUSE_JEMALLOC
14+
// #cgo use_jemalloc CFLAGS: -I../../third_party/jemalloc/include/
15+
// #cgo use_jemalloc LDFLAGS: -L../../third_party/jemalloc/lib/ -ljemalloc_pic
1616
//
1717
// #include "cgo_redis.h"
1818
//

0 commit comments

Comments
 (0)