From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: "Jeff King" <peff@peff.net>,
"Đoàn Trần Công Danh" <congdanhqx@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH] Makefile: fix parallel build race
Date: Thu, 18 Nov 2021 00:56:35 +0100 [thread overview]
Message-ID: <211118.86tuga5o68.gmgdl@evledraar.gmail.com> (raw)
In-Reply-To: <nycvar.QRO.7.76.6.2111180012470.21127@tvgsbejvaqbjf.bet>
On Thu, Nov 18 2021, Johannes Schindelin wrote:
> On Tue, 16 Nov 2021, Jeff King wrote:
>
>> I wondered if contrib/buildsystems/CMakeLists would need a similar
>> fixup, but it doesn't have any generated header dependencies at all (not
>> for hook-list.h, but not for the existing command-list.h). So I'll
>> assume it's fine (as did cfe853e66b).
>
> The strategy we take in our CMake-based configuration is for files like
> hook-list.h to be generated at _configure_ time, i.e. before the build
> definition file is written, i.e. well before the build. That's why there
> is no explicit dependency, it's not necessary.
It is necessary, otherwise how will it know to re-generate the
hook-list.h if its source of truth changes? I.e. if we add a new
hook. Ditto for a new built-in, config variable etc.
I understand that the answer is that cmake (or at least our use of it)
doesn't even try to solve the same problem as the Makefile does, i.e. to
declare dependencies and to be capable of incremental builds.
It's more of a one-shot command where you'll need to run its equivalent
of "make clean" before you recompile.
Correct?
next prev parent reply other threads:[~2021-11-17 23:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-17 1:25 [PATCH] Makefile: fix parallel build race Đoàn Trần Công Danh
2021-11-17 3:18 ` Jeff King
2021-11-17 3:39 ` Mike Hommey
2021-11-17 10:21 ` Ævar Arnfjörð Bjarmason
2021-11-17 23:14 ` Johannes Schindelin
2021-11-17 23:56 ` Ævar Arnfjörð Bjarmason [this message]
2021-11-18 1:19 ` Đoàn Trần Công Danh
2021-11-18 14:36 ` Johannes Schindelin
2021-11-19 7:08 ` Ævar Arnfjörð Bjarmason
2021-11-19 7:06 ` Ævar Arnfjörð Bjarmason
2021-11-19 15:44 ` Johannes Schindelin
2021-11-19 16:48 ` Ævar Arnfjörð Bjarmason
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=211118.86tuga5o68.gmgdl@evledraar.gmail.com \
--to=avarab@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).