diff options
| author | Magnus Hagander <magnus@hagander.net> | 2010-10-17 16:36:54 +0200 |
|---|---|---|
| committer | Magnus Hagander <magnus@hagander.net> | 2010-10-17 16:38:54 +0200 |
| commit | eed33cdd83a6f8693c40268adc39d6d65fff8b23 (patch) | |
| tree | 4c41dc04e0ec70a07af64fe5a177bd1c852a2f69 /src | |
| parent | 24d446b56959f4449b5c78520a954ea0bbb517b8 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/msvc/Solution.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 12b9085bc5b..7cda2d1c5a7 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -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!"; } |
