]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: Do less when not building from git
authorAndrea Bolognani <abologna@redhat.com>
Tue, 3 Oct 2023 12:57:05 +0000 (14:57 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 26 Oct 2023 09:31:16 +0000 (11:31 +0200)
commited90d3622488cdd852b4281cf969a0cf582b5da7
tree81c9d802fc44fe790cbe19be883db63df2539c8c
parent5d95617ed92fcae26e6e863d9036e07054a3e234
meson: Do less when not building from git

As explained in the comment, the syntax-check machinery uses git
to figure out the list of files it should operate on, so we can
only enable it when building from git.

Despite only registering the various tests with meson in that
case, however, we unconditionally perform a bunch of preparation
that is only useful for the purpose of registering and running
the tests. If we're not going to do that, we can skip a few steps
and save a bit of time.

Best viewed with 'git show -w'.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
build-aux/meson.build