aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-18 12:13:09 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-18 12:13:09 +0100
commitb1e8ab492c45f039b93ecdd98e9ff5638ae23132 (patch)
tree0ec0aae18b9313f363f20d3e0d8c11323c4eff6f
parent4c39d7b1e2d3a2ac4d6255170631c5bd610a2878 (diff)
downloadallocbench-b1e8ab492c45f039b93ecdd98e9ff5638ae23132.tar.gz
allocbench-b1e8ab492c45f039b93ecdd98e9ff5638ae23132.zip
build tcmalloc optimized
-rw-r--r--src/allocators/tcmalloc.py3
1 files changed, 2 insertions, 1 deletions
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"
]