summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIgor Raits <i.gnatenko.brain@gmail.com>2020-06-15 19:33:52 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-06-15 23:53:41 +0300
commitc4761afa634a1c3b15c1c8229cb39b3f267fd3b1 (patch)
tree9fa71a95e3e5d5e167eefc8757668c875bc8c9ab /data
parent6f2eb6233cca9d92f6a41a39e56f547e8e82a2b6 (diff)
downloadmeson-c4761afa634a1c3b15c1c8229cb39b3f267fd3b1.tar.gz
macros.meson: Switch to %{_smp_build_ncpus}
It is available since RPM 4.15 which has been around 1 year by now. Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'data')
-rw-r--r--data/macros.meson12
1 files changed, 3 insertions, 9 deletions
diff --git a/data/macros.meson b/data/macros.meson
index c5b90de03..25601aad3 100644
--- a/data/macros.meson
+++ b/data/macros.meson
@@ -2,12 +2,6 @@
%__meson_wrap_mode nodownload
%__meson_auto_features enabled
-%_smp_mesonflags %([ -z "$MESON_BUILD_NCPUS" ] \\\
- && MESON_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
- ncpus_max=%{?_smp_ncpus_max}; \\\
- if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$MESON_BUILD_NCPUS" -gt "$ncpus_max" ]; then MESON_BUILD_NCPUS="$ncpus_max"; fi; \\\
- if [ "$MESON_BUILD_NCPUS" -gt 1 ]; then echo "--num-processes $MESON_BUILD_NCPUS"; fi)
-
%meson \
%set_build_flags \
%{shrink:%{__meson} \
@@ -37,8 +31,8 @@
%ninja_install -C %{_vpath_builddir}
%meson_test \
- %{shrink: %{__meson} test \
+ %{shrink:%{__meson} test \
-C %{_vpath_builddir} \
- %{?_smp_mesonflags} \
+ --num-processes %{_smp_build_ncpus} \
--print-errorlogs \
- %{nil}}
+ %{nil}}