From ae3ef856938fed84a749215a738106af911cc23b Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 28 May 2021 09:26:30 -0400 Subject: [PATCH] Report configured port in MSVC built pg_config This is a long standing omission, discovered when trying to write code that relied on it. Backpatch to all live branches. --- src/tools/msvc/Solution.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 1fa93ff2903..746b27d39d9 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -898,6 +898,8 @@ sub GetFakeConfigure $cfg .= ' --with-tcl' if ($self->{options}->{tcl}); $cfg .= ' --with-perl' if ($self->{options}->{perl}); $cfg .= ' --with-python' if ($self->{options}->{python}); + my $port = $self->{options}->{'--with-pgport'}; + $cfg .= " --with-pgport=$port" if defined($port) return $cfg; }