Add bbstreamer_gzip.c to Mkvcbuild.pm.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 21:15:58 +0000 (16:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 21:15:58 +0000 (16:15 -0500)
Also add a note to src/bin/pg_basebackup/Makefile to try to reduce
the chances of future mistakes of this type.

Per bowerbird.

src/bin/pg_basebackup/Makefile
src/tools/msvc/Mkvcbuild.pm

index 78d96c649c1ee18b10c096826b6bd6b8b1bc1f3d..ada3a5a5783347b7509c2dc3704daeeb6259b0ac 100644 (file)
@@ -35,6 +35,9 @@ OBJS = \
    streamutil.o \
    walmethods.o
 
+# If you add or remove files here, also update Mkvcbuild.pm, which only knows
+# about OBJS, not BBOBJS, and thus has to be manually updated to stay in sync
+# with this list.
 BBOBJS = \
    pg_basebackup.o \
    bbstreamer_file.o \
index ec3546d0c0fa99f44afa169a2adb29b8691a371f..a310bcb28c90202317d715932a4828a6cb619ab6 100644 (file)
@@ -377,6 +377,7 @@ sub mkvcbuild
    # This list of files has to match BBOBJS in pg_basebackup's Makefile.
    $pgbasebackup->AddFile('src/bin/pg_basebackup/pg_basebackup.c');
    $pgbasebackup->AddFile('src/bin/pg_basebackup/bbstreamer_file.c');
+   $pgbasebackup->AddFile('src/bin/pg_basebackup/bbstreamer_gzip.c');
    $pgbasebackup->AddFile('src/bin/pg_basebackup/bbstreamer_inject.c');
    $pgbasebackup->AddFile('src/bin/pg_basebackup/bbstreamer_tar.c');
    $pgbasebackup->AddLibrary('ws2_32.lib');