git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cmake: determine list of extra built-ins dynamically

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 4, 2020, 22:44 UTC
Message-ID
<nycvar.QRO.7.76.6.2012042341270.25979@tvgsbejvaqbjf.bet>
In-Reply-To
<X8qmClPjwYWIoExP@coredump.intra.peff.net>
Hi Peff,
On Fri, 4 Dec 2020, Jeff King wrote:
Show 9 quoted lines
> On Fri, Dec 04, 2020 at 07:33:56PM +0000, Johannes Schindelin via GitGitGadget wrote:
>
> > Rather than always play catch-up and adjust `git_builtin_extra`
> > manually, use the `BUILT_INS` definitions in the Makefile as
> > authoritative source and generate `git_builtin_extra` dynamically.
>
> Yay. This is exactly how I'd hoped things would work or the cmake file
> in general. I don't mind following micro-formats within our Makefile to
> keep things easier for the cmake parsing side.

Me, too. I am somewhat embarrassed that I missed the `git_builtin_extra` list in my review of the CMake patch series...

Show 5 quoted lines
> >  contrib/buildsystems/CMakeLists.txt | 15 +++++++++++----
> >  1 file changed, 11 insertions(+), 4 deletions(-)
>
> The implementation looks plausibly correct to me (bearing in mind that
> I've never written cmake).

It is a close copy of the two macros we already use to parse the `Makefile` for lists of `.o` files and for scripts.

Together with the fact that this patch fixes the CI build of Git for Windows' `shears/seen` branch (which is a continuously-rebased version of Git for Windows' `main` branch onto `seen`, plus fixups), I am fairly confident that it is correct.

Ciao, Dscho

Previous: Jeff King
Message 5 of 5 in “cmake: determine list of extra built-ins dynamically”
  1. cmake: determine list of extra built-ins dynamicallyJohannes Schindelin via GitGitGadget, Dec 4, 2020
  2. Junio C HamanoDec 4, 2020
  3. Johannes SchindelinDec 4, 2020
  4. Jeff KingDec 4, 2020
  5. Johannes SchindelinDec 4, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.