]> Kevux Git Server - rit/commit
meson: compile compatibility sources separately
authorPatrick Steinhardt <ps@pks.im>
Thu, 19 Mar 2026 05:33:26 +0000 (06:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Mar 2026 13:40:09 +0000 (06:40 -0700)
commitdaa56fb7897ce8819e5a64f4ec7800b3eef03031
treeb36beaca4762e478aa97ba6345ece20a887ed241
parentbaa61e46da8f501e3b2d1900486255a546d3535b
meson: compile compatibility sources separately

In the next commit we're about to introduce a precompiled header for
"git-compat-util.h". The consequence of this change is that we'll
implicitly include that header for every compilation unit that uses the
precompiled headers.

This is okay for our "normal" library sources and our builtins. But some
of our compatibility sources do not include the header on purpose, and
doing so would cause compilation errors.

Prepare for this change by splitting out compatibility sources into
their static library. Like this, we can selectively enable precompiled
headers for the library sources.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build