From 049e777b076de43aeae6813889b85ab08172e7ce Mon Sep 17 00:00:00 2001 From: zillemarco Date: Fri, 16 Dec 2016 11:25:20 +0100 Subject: [PATCH] Fixed DownloadDeps.bat with Visual Studio DownloadDeps.bat looked for a string in the form like "Version ... for " but this doesn't work for installations of Visual Studio that are not English. Changed the regex to make it user language agnostic. --- build/scripts/LLVM.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/LLVM.lua b/build/scripts/LLVM.lua index 66fd7cff..7319e707 100644 --- a/build/scripts/LLVM.lua +++ b/build/scripts/LLVM.lua @@ -62,7 +62,7 @@ function get_toolset_configuration_name() if not string.starts(vsver, "vs") then local out = outputof("cl") - local ver, arch = string.match(out, 'Version (%d+)%.%d+%.%d+%.?%d* for (%w+)') + local ver, arch = string.match(out, '(%d+).%d+.%d+.?%d*%s+%w*%s+(%w+)') vsver = get_vs_version(ver) end