summaryrefslogtreecommitdiff
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:46 -0400
commitabbd70022c17f541e7d05163b80631aa722fd58e (patch)
tree00e9ccbd940c4dc95574b211ebe28717feae4239
parent7a4f2e158c0e62e26166423c411628958cb5d474 (diff)
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 d7388606332..fdfcbb73dd7 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -790,6 +790,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;
}