Skip to content

Commit

Permalink
strace: set enableParallelBuilding = true
Browse files Browse the repository at this point in the history
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] strace/strace@0c56f62

(cherry picked from commit dfcde71)
  • Loading branch information
phip1611 authored and alyssais committed Sep 30, 2024
1 parent 9603a11 commit 8344c10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/tools/misc/strace/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8344c10

Please sign in to comment.