aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-05-28 09:26:30 -0400
committerAndrew Dunstan <andrew@dunslane.net>2021-05-28 09:30:16 -0400
commitfb424ae85f6b1e32e545f13902d3ba3429be44df (patch)
tree94619e713895d7b039a3b443fa8840ee10c7cda8 /src
parent9afdea982420f9672b88e5c17d1ee8eec64105fc (diff)
downloadpostgresql-fb424ae85f6b1e32e545f13902d3ba3429be44df.tar.gz
postgresql-fb424ae85f6b1e32e545f13902d3ba3429be44df.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 97f012bbb5e..3ee57c46da5 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -1198,6 +1198,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;
}