strace: set enableParallelBuilding = true

This reduces the build time from 55s to 25s on my modern 16-core machine.

The main motivation for this step is that I apply a custom patch onto
strace in my NixOS configuration and the build time is longer than necessary.
The debian package definition shows [0] that strace can be reliably build using
multiple makefile jobs.

[0] 0c56f62207

(cherry picked from commit dfcde71216)
This commit is contained in:
Philipp Schuster 2024-09-30 08:40:27 +02:00 committed by Alyssa Ross
parent 9603a116b8
commit 8344c101f3

View File

@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
enableParallelBuilding = true;
# libunwind for -k.
# On RISC-V platforms, LLVM's libunwind implementation is unsupported by strace.
# The build will silently fall back and -k will not work on RISC-V.