nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 18 lines 665 B view raw
1diff --git a/pahole.c b/pahole.c 2index 6fc4ed6..a4e306f 100644 3--- a/pahole.c 4+++ b/pahole.c 5@@ -1687,8 +1687,11 @@ static error_t pahole__options_parser(int key, char *arg, 6 class_name = arg; break; 7 case 'j': 8 #if _ELFUTILS_PREREQ(0, 178) 9- conf_load.nr_jobs = arg ? atoi(arg) : 10- sysconf(_SC_NPROCESSORS_ONLN) * 1.1; 11+ // Force single thread if reproducibility is desirable. 12+ if (!getenv("SOURCE_DATE_EPOCH")) { 13+ conf_load.nr_jobs = arg ? atoi(arg) : 14+ sysconf(_SC_NPROCESSORS_ONLN) * 1.1; 15+ } 16 #else 17 fputs("pahole: Multithreading requires elfutils >= 0.178. Continuing with a single thread...\n", stderr); 18 #endif