Skip to content

Commit fb424ae

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 9afdea9 commit fb424ae

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
@@ -1198,6 +1198,8 @@ sub GetFakeConfigure
11981198
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
11991199
$cfg .= ' --with-perl' if ($self->{options}->{perl});
12001200
$cfg .= ' --with-python' if ($self->{options}->{python});
1201+
my $port = $self->{options}->{'--with-pgport'};
1202+
$cfg .= " --with-pgport=$port" if defined($port)
12011203

12021204
return $cfg;
12031205
}

0 commit comments

Comments
 (0)