Re: [libvirt PATCH 342/351] meson: add syntax-check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 16, 2020 at 11:59:38 +0200, Pavel Hrdina wrote:
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  build-aux/Makefile.in                         |  9 +++
>  .../Makefile.nonreentrant                     |  0
>  build-aux/meson.build                         | 30 +++++++++
>  build-aux/syntax-check.mk                     | 62 +++++++++----------
>  meson.build                                   |  2 +
>  5 files changed, 72 insertions(+), 31 deletions(-)
>  create mode 100644 build-aux/Makefile.in
>  rename Makefile.nonreentrant => build-aux/Makefile.nonreentrant (100%)
>  create mode 100644 build-aux/meson.build

[...]

> +make_prog = find_program('make')
> +
> +# There is no way how to pass value to -j using run_target so let's use
> +# it without any value to run all tests in parallel.
> +run_target(
> +  'syntax-check',
> +  command: [
> +    make_prog, '-C', meson.current_build_dir(), '-j', 'syntax-check',
> +  ],

While I do run syntax check with unlimited '-j'. I don't think it's
entirely cool to impose that on everybody. Specifically overcommiting
the system is not cool. Since meson is automagically scaling can't we
use the meson-detected cpu number here?




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux