Skip to content

Commit dd9543d

Browse files
committed
utils: build unsafe2 with -tags="cgo_jemalloc"
1 parent 4df7c92 commit dd9543d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ codis-dashboard: codis-deps
1313
@./bin/codis-dashboard --default-config > config/dashboard.toml
1414

1515
codis-proxy: codis-deps
16-
go build -i -o bin/codis-proxy ./cmd/proxy
16+
go build -i -tags "cgo_jemalloc" -o bin/codis-proxy ./cmd/proxy
1717
@./bin/codis-proxy --default-config > config/proxy.toml
1818

1919
codis-admin: codis-deps

pkg/utils/unsafe2/cgo_malloc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2016 CodisLabs. All Rights Reserved.
22
// Licensed under the MIT (MIT-LICENSE.txt) license.
33

4-
// +build !darwin,!linux
4+
// +build !cgo_jemalloc
55

66
package unsafe2
77

pkg/utils/unsafe2/je_malloc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2016 CodisLabs. All Rights Reserved.
22
// Licensed under the MIT (MIT-LICENSE.txt) license.
33

4-
// +build darwin linux
4+
// +build cgo_jemalloc
55

66
package unsafe2
77

0 commit comments

Comments
 (0)