aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-18 12:29:03 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-18 12:29:03 +0100
commit3b8d3174bb39806f4752e14fa12582563d4b4c0c (patch)
treeb2e45e0677edbcb45880ba9b1b2bae9f272672ae
parent1077e8b3b4d0f00d2b13fd815fe5747ac526e0f7 (diff)
downloadallocbench-3b8d3174bb39806f4752e14fa12582563d4b4c0c.tar.gz
allocbench-3b8d3174bb39806f4752e14fa12582563d4b4c0c.zip
build glibc in parallel
-rw-r--r--src/allocators/glibc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py
index 2718343..faeadd4 100644
--- a/src/allocators/glibc.py
+++ b/src/allocators/glibc.py
@@ -17,6 +17,8 @@
"""Glibc definitions"""
+from multiprocessing import cpu_count
+
from src.allocator import Allocator, LIBRARY_PATH
from src.artifact import GitArtifact
@@ -37,7 +39,7 @@ class Glibc(Allocator):
self.build_cmds = ["mkdir -p glibc-build",
"cd glibc-build; {srcdir}/configure --prefix={dir} " + configure_args,
"cd glibc-build; make",
- "cd glibc-build; make install"]
+ f"cd glibc-build; make -l {cpu_count()} install"]
self.cmd_prefix = "{dir}/lib/ld-linux-x86-64.so.2 --library-path {dir}/lib:" + LIBRARY_PATH