Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:gtk4
meson
revert-Switch-to-_smp_build_ncpus.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File revert-Switch-to-_smp_build_ncpus.diff of Package meson
--- a/data/macros.meson +++ b/data/macros.meson @@ -2,6 +2,12 @@ %__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 "$MESON_BUILD_NCPUS"; else echo "1"; fi) + %meson \ %set_build_flags \ %{shrink:%{__meson} \ @@ -27,7 +33,7 @@ %meson_build \ %{shrink:%{__meson} compile \ -C %{_vpath_builddir} \ - -j %{_smp_build_ncpus} \ + -j %{?_smp_mesonflags} \ --verbose \ %{nil}} @@ -40,6 +46,6 @@ %meson_test \ %{shrink:%{__meson} test \ -C %{_vpath_builddir} \ - --num-processes %{_smp_build_ncpus} \ + --num-processes %{?_smp_mesonflags} \ --print-errorlogs \ %{nil}}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor