postgres.git / summary / log / commit / refs

commit    a8c1062a11846327f2d04992558da37a64342c8a
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Fri May 28 13:26:30 2021 +0000
First released in: 14.0, 9.6.23, 10.18, 11.13, 12.8, 13.4

    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 4d21b1c70ae..adc7f7e30ac 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -813,6 +813,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; } [parent: 8f507dbc6404]