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

Re: [PATCH] cmake: don't invoke msgfmt with --statistics

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 20, 2022, 00:43 UTC
Message-ID
<xmqqcz8e29d5.fsf@gitster.g>
In-Reply-To
<45d8d9fc-ca68-5902-0aa7-70034f8383ff@dunelm.org.uk>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 10 quoted lines
> On 19/12/2022 10:26, Ævar Arnfjörð Bjarmason wrote:
>> In [1] I made the same change to our Makefile, let's follow-up and do
>> the same here.
>> For "cmake" this is particularly nice with "-G Ninja", as before
>> we'd
>> emit ~40 lines of overflowed progress bar output, but now it's only
>> the one line of "ninja"'s progress bar.
>
> I don't really have a strong opinion either way on this but if it
> matches what we do in the Makefile than it sounds sensible.

As a one-shot change, it might be sensible to claim consistency by saying "we do the same thing in two places", but I'd worry more about the root cause of such inconsistency in the first place, i.e. can we have some trick to ensure that two build systems will not reimplement the same thing slightly differently?

It also is worth examining if having "the same change" is a good idea in the first place. The justification given "In [1]" was that a build driven by our Makefile were concise and non-verbose overall, but with --stat that concise output pattern was broken.

I do not know (and I do not have particular interest in knowing) how a build driven by cmake looks like, but does it also aim the same concise output where output --stat does not fit well, or do folks who daily build with cmake find the output with --stat sit well in the output from other things given there? If the latter, making "the same change" as the Makefile side may not make much sense.

Previous: Phillip WoodNext: Ævar Arnfjörð Bjarmason
Message 3 of 5 in “cmake: don't invoke msgfmt with --statistics”
  1. cmake: don't invoke msgfmt with --statisticsÆvar Arnfjörð Bjarmason, Dec 19, 2022
  2. Phillip WoodDec 19, 2022
  3. Junio C HamanoDec 20, 2022
  4. Ævar Arnfjörð BjarmasonDec 27, 2022
  5. Junio C HamanoDec 27, 2022

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.