Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ae3ef85

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 a75268f commit ae3ef85

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
@@ -898,6 +898,8 @@ sub GetFakeConfigure
898898
$cfg .= ' --with-tcl' if ($self->{options}->{tcl});
899899
$cfg .= ' --with-perl' if ($self->{options}->{perl});
900900
$cfg .= ' --with-python' if ($self->{options}->{python});
901+
my $port = $self->{options}->{'--with-pgport'};
902+
$cfg .= " --with-pgport=$port" if defined($port)
901903

902904
return $cfg;
903905
}

0 commit comments

Comments
 (0)