postgres.git / summary / log / commit / refs

commit    31f9bbf05928ed8f20b1c371df8098d8c7dddb37
Author:   Noah Misch <noah@leadboat.com>
Date:     Wed Jul 23 04:35:07 2014 +0000
First released in: 9.5.0, 9.0.19, 9.1.15, 9.2.10, 9.3.6, 9.4.0

    MSVC: Substitute $(top_builddir) in REGRESS_OPTS.
    
    Commit d7cdf6ee36adeac9233678fb8f2a112e6678a770 introduced a usage
    thereof.  Back-patch to 9.0, like that commit.


src/tools/msvc/vcregress.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 39698ee7ee6..b84f70dcbc4 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -331,9 +331,13 @@ sub fetchRegressOpts if ($m =~ /^\s*REGRESS_OPTS\s*=(.*)/m) { - # ignore options that use makefile variables - can't handle those - # ignore anything that isn't an option staring with -- - @opts = grep { $_ !~ /\$\(/ && $_ =~ /^--/ } split(/\s+/, $1); + # Substitute known Makefile variables, then ignore options that retain + # an unhandled variable reference. Ignore anything that isn't an + # option starting with "--". + @opts = grep { + s/\Q$(top_builddir)\E/\"$topdir\"/; + $_ !~ /\$\(/ && $_ =~ /^--/ + } split(/\s+/, $1); } if ($m =~ /^\s*ENCODING\s*=\s*(\S+)/m) { [parent: 27048980f503]