Skip to content

Commit

Permalink
utils: build unsafe2 with -tags="cgo_jemalloc"
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Mar 27, 2017
1 parent 4df7c92 commit dd9543d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ codis-dashboard: codis-deps
@./bin/codis-dashboard --default-config > config/dashboard.toml

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

codis-admin: codis-deps
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/unsafe2/cgo_malloc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2016 CodisLabs. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

// +build !darwin,!linux
// +build !cgo_jemalloc

package unsafe2

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/unsafe2/je_malloc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2016 CodisLabs. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

// +build darwin linux
// +build cgo_jemalloc

package unsafe2

Expand Down

0 comments on commit dd9543d

Please sign in to comment.