From b1e8ab492c45f039b93ecdd98e9ff5638ae23132 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 18 Feb 2020 12:13:09 +0100 Subject: build tcmalloc optimized --- src/allocators/tcmalloc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py index 571ef0d..054dba3 100644 --- a/src/allocators/tcmalloc.py +++ b/src/allocators/tcmalloc.py @@ -30,7 +30,8 @@ class TCMalloc(Allocator): self.LD_PRELOAD = "{dir}/libtcmalloc.so" self.patches = ["{patchdir}/tcmalloc_bazel_build_so.patch"] self.build_cmds = [ - "cd {srcdir}; bazel build tcmalloc/tcmalloc.so", "mkdir {dir}", + "cd {srcdir}; bazel build tcmalloc/tcmalloc.so --compilation_mode opt", + "mkdir {dir}", "cp {srcdir}/bazel-bin/tcmalloc/tcmalloc.so {dir}/libtcmalloc.so" ] -- cgit v1.2.3