From: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
To: Patrick Steinhardt <ps@pks.im>, git@vger.kernel.org
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH 4/7] meson: use precompiled headers for unit tests
Date: Mon, 5 Oct 2026 15:04:16 +0530 [thread overview]
Message-ID: <eb0432fa-a595-4690-bf13-baffb306cc3a@gmail.com> (raw)
In-Reply-To: <20260924-pks-meson-improvements-v1-4-90b7f79f1c4e@pks.im>
On 9/24/26 19:39, Patrick Steinhardt wrote:
>
> diff --git a/t/meson.build b/t/meson.build
> index 3ca7b27104..9f1ee9ad59 100644
> --- a/t/meson.build
> +++ b/t/meson.build
> @@ -30,7 +30,6 @@ clar_test_suites = [
> ]
>
> clar_sources = [
> - 'unit-tests/clar/clar.c',
> 'unit-tests/unit-test.c',
> 'unit-tests/lib-oid.c',
> 'unit-tests/lib-reftable.c'
> @@ -49,7 +48,7 @@ clar_decls_h = custom_target(
> )
> clar_sources += clar_decls_h
>
> -clar_sources += custom_target(
> +clar_suite_h = custom_target(
> input: clar_decls_h,
> output: 'clar.suite',
> command : [
> @@ -66,6 +65,13 @@ clar_unit_tests = executable('unit-tests',
> c_args: [
> '-DGIT_CLAR_DECLS_H="' + clar_decls_h.full_path() + '"',
> ],
> + c_pch: '../tools/precompiled.h',
> + link_with: static_library('clar',
> + sources: [
> + 'unit-tests/clar/clar.c',
> + clar_suite_h,
> + ],
> + ),
Compiling this separately as a static library is cool but now clar.c
does not get the libgit_c_args it was getting through the dependencies
of the unit-tests executable. Is this something that we need to correct?
> dependencies: [libgit_commonmain],
> )
> test('unit-tests', clar_unit_tests, kwargs: test_kwargs)
>
--
Sivaraam
next prev parent reply other threads:[~2026-10-05 9:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 14:09 [PATCH 0/7] A couple of Meson improvements Patrick Steinhardt
2026-09-24 14:09 ` [PATCH 1/7] meson: avoid recompiling HTTP sources several times Patrick Steinhardt
2026-09-30 12:00 ` Karthik Nayak
2026-10-05 8:03 ` Kaartic Sivaraam
2026-09-24 14:09 ` [PATCH 2/7] meson: don't recompile git-remote-http(1) multiple times for tests Patrick Steinhardt
2026-09-24 14:09 ` [PATCH 3/7] meson: use precompiled headers for our test-helper Patrick Steinhardt
2026-09-30 12:20 ` Karthik Nayak
2026-09-24 14:09 ` [PATCH 4/7] meson: use precompiled headers for unit tests Patrick Steinhardt
2026-10-05 9:34 ` Kaartic Sivaraam [this message]
2026-10-05 10:24 ` Patrick Steinhardt
2026-09-24 14:09 ` [PATCH 5/7] meson: fix outdated completion helpers Patrick Steinhardt
2026-09-24 14:09 ` [PATCH 6/7] meson: update wrappers Patrick Steinhardt
2026-09-30 12:24 ` Karthik Nayak
2026-10-05 9:42 ` Kaartic Sivaraam
2026-10-05 10:25 ` Patrick Steinhardt
2026-09-24 14:09 ` [PATCH 7/7] gitlab-ci: fix hanging MSVC jobs Patrick Steinhardt
2026-09-30 12:26 ` Karthik Nayak
2026-09-30 12:48 ` Patrick Steinhardt
2026-09-30 12:26 ` [PATCH 0/7] A couple of Meson improvements Karthik Nayak
2026-10-05 9:51 ` Kaartic Sivaraam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eb0432fa-a595-4690-bf13-baffb306cc3a@gmail.com \
--to=kaartic.sivaraam@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.