On Tue, Nov 28, 2017 at 10:26:33PM -0500, Jeff King wrote: > On Mon, Nov 27, 2017 at 12:40:51AM +0200, Max Kirillov wrote: > That said, we already have some precedent in "git version > --build-options" to report sizes there. Can we do something like the > patch below instead of adding a new test helper? > > diff --git a/help.c b/help.c > index 88a3aeaeb9..9590eaba28 100644 > --- a/help.c > +++ b/help.c > @@ -413,6 +413,7 @@ int cmd_version(int argc, const char **argv, const char *prefix) > > if (build_options) { > printf("sizeof-long: %d\n", (int)sizeof(long)); > + printf("sizeof-size_t: %d\n", (int)sizeof(size_t)); > /* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */ > } > return 0; Thank you! I knew there should have been something. If nobody objects changing the user-visible behavior, I'll consider using this. PS: I'll respond to your other reply a bit later.