On 04/09/2018 09:40 AM, Richard Biener wrote:
On Mon, 9 Apr 2018, Adam Majer wrote:
On 04/06/2018 03:52 PM, Tomas Chvatal wrote:
BuildRequires: memory-constraints
%build # require 2GB mem per thread %limit_build -m 2000 make %{?_smp_mflags}
Great job!
This macro was sorely needed in OBS. I remember old boost has had some hax similar to this macro to try to limit number of parallel jobs. Of course, your version is much better.
I suspect this macro is mostly needed on non-x86_64 arches though.
Now we need this macro in SLE-15 too ;)
I still think this belongs to _constraints ...
https://github.com/openSUSE/open-build-service/issues/1953 The problem with having _constraints is that OBS uses these as a simple filter. So a big machine with many cores and memory would be filtered out by this _constraints while all we need is not use all of the available cores on such a machine. So having thought about it, maybe the macro route is more flexible approach. - Adam -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org