From 3b8d3174bb39806f4752e14fa12582563d4b4c0c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 18 Feb 2020 12:29:03 +0100 Subject: build glibc in parallel --- src/allocators/glibc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3