From: | Mats Kindahl <mats(at)timescale(dot)com> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Coccinelle for PostgreSQL development [3/N]: meson support |
Date: | 2025-01-07 19:48:46 |
Message-ID: | CA+14425rvGOnNxuFHQrpdgvwbc5DVJOrVQk_3_dBAKL5pF7g_g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
The third patch adds support to Meson by adding a coccicheck target. Since
ninja (which is used in the chapter "Building and Installation with
Meson"[1]) does not support variables in the same way as make does, it is
currently necessary to use:
MODE=patch ninja coccicheck
An alternative is to have three explicit targets "coccicheck-report",
"coccicheck-context", and "coccicheck-patch", which might be easier to use.
It does not work if you want to pass other flags, however, so you would
still have to use something like this if you want to pass in extra flags:
SPFLAGS=--debug ninja coccicheck-context
[1]: https://www.postgresql.org/docs/current/install-meson.html
--
Best wishes,
Mats Kindahl, Timescale
Attachment | Content-Type | Size |
---|---|---|
0003-Add-meson-build-for-coccicheck.v1.patch | text/x-patch | 4.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Mats Kindahl | 2025-01-07 19:49:45 | Coccinelle for PostgreSQL development [4/N]: correcting palloc() use |
Previous Message | Mats Kindahl | 2025-01-07 19:47:31 | Coccinelle for PostgreSQL development [2/N]: autoconf support [RESEND] |