Blame 0001-macros.meson-Switch-to-_smp_build_ncpus.patch
|
Igor Raits |
209c74 |
From 9a634850c8e2fdc56159dc6e57d4842b7c7f4e0d Mon Sep 17 00:00:00 2001
|
|
Igor Raits |
769229 |
From: Igor Raits <i.gnatenko.brain@gmail.com>
|
|
Igor Raits |
769229 |
Date: Mon, 15 Jun 2020 19:33:52 +0200
|
|
Igor Raits |
209c74 |
Subject: [PATCH 1/3] macros.meson: Switch to %{_smp_build_ncpus}
|
|
Igor Raits |
769229 |
|
|
Igor Raits |
769229 |
It is available since RPM 4.15 which has been around 1 year by now.
|
|
Igor Raits |
769229 |
|
|
Igor Raits |
769229 |
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
|
|
Igor Raits |
209c74 |
(cherry picked from commit c4761afa634a1c3b15c1c8229cb39b3f267fd3b1)
|
|
Igor Raits |
769229 |
---
|
|
Igor Raits |
769229 |
data/macros.meson | 12 +++---------
|
|
Igor Raits |
769229 |
1 file changed, 3 insertions(+), 9 deletions(-)
|
|
Igor Raits |
769229 |
|
|
Igor Raits |
769229 |
diff --git a/data/macros.meson b/data/macros.meson
|
|
Igor Raits |
769229 |
index c5b90de03..25601aad3 100644
|
|
Igor Raits |
769229 |
--- a/data/macros.meson
|
|
Igor Raits |
769229 |
+++ b/data/macros.meson
|
|
Igor Raits |
769229 |
@@ -2,12 +2,6 @@
|
|
Igor Raits |
769229 |
%__meson_wrap_mode nodownload
|
|
Igor Raits |
769229 |
%__meson_auto_features enabled
|
|
Igor Raits |
769229 |
|
|
Igor Raits |
769229 |
-%_smp_mesonflags %([ -z "$MESON_BUILD_NCPUS" ] \\\
|
|
Igor Raits |
769229 |
- && MESON_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
|
|
Igor Raits |
769229 |
- ncpus_max=%{?_smp_ncpus_max}; \\\
|
|
Igor Raits |
769229 |
- if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$MESON_BUILD_NCPUS" -gt "$ncpus_max" ]; then MESON_BUILD_NCPUS="$ncpus_max"; fi; \\\
|
|
Igor Raits |
769229 |
- if [ "$MESON_BUILD_NCPUS" -gt 1 ]; then echo "--num-processes $MESON_BUILD_NCPUS"; fi)
|
|
Igor Raits |
769229 |
-
|
|
Igor Raits |
769229 |
%meson \
|
|
Igor Raits |
769229 |
%set_build_flags \
|
|
Igor Raits |
769229 |
%{shrink:%{__meson} \
|
|
Igor Raits |
769229 |
@@ -37,8 +31,8 @@
|
|
Igor Raits |
769229 |
%ninja_install -C %{_vpath_builddir}
|
|
Igor Raits |
769229 |
|
|
Igor Raits |
769229 |
%meson_test \
|
|
Igor Raits |
769229 |
- %{shrink: %{__meson} test \
|
|
Igor Raits |
769229 |
+ %{shrink:%{__meson} test \
|
|
Igor Raits |
769229 |
-C %{_vpath_builddir} \
|
|
Igor Raits |
769229 |
- %{?_smp_mesonflags} \
|
|
Igor Raits |
769229 |
+ --num-processes %{_smp_build_ncpus} \
|
|
Igor Raits |
769229 |
--print-errorlogs \
|
|
Igor Raits |
769229 |
- %{nil}}
|
|
Igor Raits |
769229 |
+ %{nil}}
|
|
Igor Raits |
769229 |
--
|
|
Igor Raits |
769229 |
2.27.0
|
|
Igor Raits |
769229 |
|