Re: [PATCH v2 2/4] meson: move headers definition from 'contrib/coccinelle'
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Apr 11, 2025, 12:13 UTC
- Message-ID
- <CAOLa=ZQvM+PPJMMmQ2XQrK5Z=j178rJVEY01X0u6ozfgPLhyFQ@mail.gmail.com>
- In-Reply-To
- <Z_jptp_xj2gpJ65s@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 30 quoted lines
> On Thu, Apr 10, 2025 at 01:30:32PM +0200, Karthik Nayak wrote: >> diff --git a/meson.build b/meson.build >> index e98cfa4909..790d178007 100644 >> --- a/meson.build >> +++ b/meson.build >> @@ -633,6 +633,28 @@ builtin_sources = [ >> 'builtin/write-tree.c', >> ] >> >> +third_party_sources = [ >> + ':!contrib', >> + ':!compat/inet_ntop.c', >> + ':!compat/inet_pton.c', >> + ':!compat/nedmalloc', >> + ':!compat/obstack.*', >> + ':!compat/poll', >> + ':!compat/regex', >> + ':!sha1collisiondetection', >> + ':!sha1dc', >> + ':!t/unit-tests/clar', >> + ':!t/unit-tests/clar', >> + ':!t/t[0-9][0-9][0-9][0-9]*', >> +] >> + >> +headers = [] > > I think we should make sure that this variable isn't declared at all > unless `git.found()`. Otherwise, we may accidentally it it even though > it does not contain anything sensible. >
Fair, I wonder if we should treat 'third_party_sources' similarly, but since it is static, it should be fine.
> Patrick