aboutsummaryrefslogtreecommitdiff
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:32:09 -0400
commitae3ef856938fed84a749215a738106af911cc23b (patch)
treee9d46a1a8e1bb5d1d25501987b1f72fe52a4cb8d
parenta75268f1cbfbae0525eec7462b6aa36852894d6d (diff)
downloadpostgresql-ae3ef856938fed84a749215a738106af911cc23b.tar.gz
postgresql-ae3ef856938fed84a749215a738106af911cc23b.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.
-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 1fa93ff2903..746b27d39d9 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -898,6 +898,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;
}