Re: automating pg_config.h.win32 maintenance - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: automating pg_config.h.win32 maintenance
Date
Msg-id 20191219035924.GE4202@paquier.xyz
Whole thread Raw
In response to Re: automating pg_config.h.win32 maintenance  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: automating pg_config.h.win32 maintenance  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Tue, Dec 17, 2019 at 11:56:17AM +0100, Peter Eisentraut wrote:
> Yeah, good idea.  Attached patch is refactored so all three header files
> managed by AC_CONFIG_HEADERS are processed the same way.

Looks good.  I just have one comment.

+   # XXX
+   open(my $f, '>>', 'src/include/pg_config.h')
+     || confess "Could not write to src/include/pg_config.h\n";
+   print $f "\n";
+   print $f "#define VAL_CONFIGURE \""
+     . $self->GetFakeConfigure() . "\"\n";
+   close($f);

This part needs a comment.  Like it is the equivalent of what
src/common/'s Makefile does or something like that?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: Read Uncommitted regression test coverage
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Clean up some old cruft related to Windows