Skip to content

Commit c828a72

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 ab81d00 commit c828a72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/msvc/Solution.pm

+2
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,8 @@ sub GetFakeConfigure
11721172
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
11731173
$cfg .= ' --with-perl' if ($self->{options}->{perl});
11741174
$cfg .= ' --with-python' if ($self->{options}->{python});
1175+
my $port = $self->{options}->{'--with-pgport'};
1176+
$cfg .= " --with-pgport=$port" if defined($port)
11751177

11761178
return $cfg;
11771179
}

0 commit comments

Comments
 (0)