Skip to content

Commit 3f70d7e

Browse files
committed
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.
1 parent cf2e095 commit 3f70d7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/msvc/Solution.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,8 @@ sub GetFakeConfigure
864864
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
865865
$cfg .= ' --with-perl' if ($self->{options}->{perl});
866866
$cfg .= ' --with-python' if ($self->{options}->{python});
867+
my $port = $self->{options}->{'--with-pgport'};
868+
$cfg .= " --with-pgport=$port" if defined($port)
867869

868870
return $cfg;
869871
}

0 commit comments

Comments
 (0)