mirror of
https://github.com/postgres/postgres.git
synced 2026-04-27 09:07:42 -04:00
Fix msvc build for localized versions of Visual C++
Look only at the non-localized part of the output from "vcbuild /?", which is used to determine the version of Visual Studio in use. Different languages seem to localize different amounts of the string, but we assume the part "Microsoft Visual C++" won't be modified.
This commit is contained in:
parent
24d446b569
commit
eed33cdd83
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ sub DetermineToolVersions
|
|||
open(P,"vcbuild /? |") || die "vcbuild command not found";
|
||||
my $line = <P>;
|
||||
close(P);
|
||||
if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+ Project Builder - \D+(\d+)\.00\.\d+/)
|
||||
if ($line !~ /^Microsoft\s*\(R\) Visual C\+\+ [^-]+ - \D+(\d+)\.00\.\d+/)
|
||||
{
|
||||
die "Unable to determine vcbuild version from first line of output!";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue