On 14 July 2017 at 00:32, Bruce Dubbs <[email protected]> wrote:

> systemd-234 has been released.  In the NEWS file they now want to go to a
> meson build and eliminate autotools. I took a look at meson.build file on
> the new systemd. The file is 2528 lines long. This is supposed to be
> simplier??? WTF ???
>
> Looking at some meson documentation, it appears that if you want to set
> some options, you have to create a file. http://mesonbuild.com/Build-op
> tions.html. Seems like a regression to me.
>
> AFAICT, meson/ninja want to use all available cores. I have not figured
> out how to limit that. For instance I want to limit the number of cores on
> my laptop on long builds to prevent overheating.
>

>From https://ninja-build.org/manual.html#_introduction:-

"Builds are always run in parallel, based by default on the number of CPUs
your system has. Underspecified build dependencies will result in incorrect
builds."

But further on it states:-

"ninja -h prints help output. Many of Ninja’s flags intentionally match
those of Make; e.g ninja -C build -j 20 changes into the build directory
and runs 20 build commands in parallel. (Note that Ninja defaults to
running commands in parallel anyway, so typically you don’t need to pass -j
.)"

So it looks like you might be able to limit parallel builds with -j, but
I'll admit it's not clear.

Richard
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to