From c96e1e1fc7ca18fb232840c9de3ea20d3f8a3744 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Mon, 14 Apr 2025 00:48:14 +0800 Subject: [PATCH] attempt to set `--jobs` flag for GNU Make dynamically --- arch-builder/makepkg/makepkg-aarch64.conf | 2 +- arch-builder/makepkg/makepkg-armv7h.conf | 2 +- arch-builder/makepkg/makepkg-goldmont.conf | 2 +- arch-builder/makepkg/makepkg-native.conf | 2 +- arch-builder/makepkg/makepkg-sandybridge.conf | 2 +- arch-builder/makepkg/makepkg-silvermont.conf | 2 +- arch-builder/makepkg/makepkg-skylake.conf | 2 +- arch-builder/makepkg/makepkg-tigerlake.conf | 2 +- arch-builder/makepkg/makepkg-znver1.conf | 3 ++- arch-builder/makepkg/makepkg-znver2.conf | 2 +- arch-builder/makepkg/makepkg-znver3.conf | 3 ++- arch-builder/makepkg/makepkg-znver5.conf | 2 +- arch-builder/makepkg/makepkg.conf | 2 +- 13 files changed, 15 insertions(+), 13 deletions(-) diff --git a/arch-builder/makepkg/makepkg-aarch64.conf b/arch-builder/makepkg/makepkg-aarch64.conf index 7a26d18..5aaff4f 100644 --- a/arch-builder/makepkg/makepkg-aarch64.conf +++ b/arch-builder/makepkg/makepkg-aarch64.conf @@ -49,7 +49,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-armv7h.conf b/arch-builder/makepkg/makepkg-armv7h.conf index bfa2029..a838a12 100644 --- a/arch-builder/makepkg/makepkg-armv7h.conf +++ b/arch-builder/makepkg/makepkg-armv7h.conf @@ -46,7 +46,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-goldmont.conf b/arch-builder/makepkg/makepkg-goldmont.conf index 140e9d3..1aaa006 100644 --- a/arch-builder/makepkg/makepkg-goldmont.conf +++ b/arch-builder/makepkg/makepkg-goldmont.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-native.conf b/arch-builder/makepkg/makepkg-native.conf index 5ea62df..cb7150e 100644 --- a/arch-builder/makepkg/makepkg-native.conf +++ b/arch-builder/makepkg/makepkg-native.conf @@ -44,7 +44,7 @@ LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \ LTOFLAGS="-flto=auto" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-sandybridge.conf b/arch-builder/makepkg/makepkg-sandybridge.conf index f44b701..821da02 100644 --- a/arch-builder/makepkg/makepkg-sandybridge.conf +++ b/arch-builder/makepkg/makepkg-sandybridge.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-silvermont.conf b/arch-builder/makepkg/makepkg-silvermont.conf index d17832d..99545df 100644 --- a/arch-builder/makepkg/makepkg-silvermont.conf +++ b/arch-builder/makepkg/makepkg-silvermont.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-skylake.conf b/arch-builder/makepkg/makepkg-skylake.conf index a3f21a3..84245c0 100644 --- a/arch-builder/makepkg/makepkg-skylake.conf +++ b/arch-builder/makepkg/makepkg-skylake.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-tigerlake.conf b/arch-builder/makepkg/makepkg-tigerlake.conf index 80171ad..c7ded71 100644 --- a/arch-builder/makepkg/makepkg-tigerlake.conf +++ b/arch-builder/makepkg/makepkg-tigerlake.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-znver1.conf b/arch-builder/makepkg/makepkg-znver1.conf index df75bbe..d4ba1a4 100644 --- a/arch-builder/makepkg/makepkg-znver1.conf +++ b/arch-builder/makepkg/makepkg-znver1.conf @@ -48,7 +48,8 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" + #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-znver2.conf b/arch-builder/makepkg/makepkg-znver2.conf index 6794d68..c052c8c 100644 --- a/arch-builder/makepkg/makepkg-znver2.conf +++ b/arch-builder/makepkg/makepkg-znver2.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-znver3.conf b/arch-builder/makepkg/makepkg-znver3.conf index 129a476..834c172 100644 --- a/arch-builder/makepkg/makepkg-znver3.conf +++ b/arch-builder/makepkg/makepkg-znver3.conf @@ -48,7 +48,8 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" + #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg-znver5.conf b/arch-builder/makepkg/makepkg-znver5.conf index 2c493c5..742707b 100644 --- a/arch-builder/makepkg/makepkg-znver5.conf +++ b/arch-builder/makepkg/makepkg-znver5.conf @@ -48,7 +48,7 @@ LTOFLAGS="-flto=auto" #RUSTFLAGS="-C opt-level=2" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" diff --git a/arch-builder/makepkg/makepkg.conf b/arch-builder/makepkg/makepkg.conf index 3c8b92e..e2ed384 100644 --- a/arch-builder/makepkg/makepkg.conf +++ b/arch-builder/makepkg/makepkg.conf @@ -46,7 +46,7 @@ LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \ -Wl,-z,pack-relative-relocs" LTOFLAGS="-flto=auto" #-- Make Flags: change this for DistCC/SMP systems -MAKEFLAGS="-j4" +MAKEFLAGS="--jobs=$(nproc)" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"