From 317d15dbe9f42e00a33211ed35f8cb550e5efcc0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 28 Aug 2020 19:48:18 +0300 Subject: [PATCH] ci: fix finding the msvc compiler on windows --- vlib/v/builder/msvc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/msvc.v b/vlib/v/builder/msvc.v index f026ed5a6c..dfad46e179 100644 --- a/vlib/v/builder/msvc.v +++ b/vlib/v/builder/msvc.v @@ -138,7 +138,7 @@ fn find_vs(vswhere_dir, host_arch string) ?VsInstallation { res := os.exec('"$vswhere_dir\\Microsoft Visual Studio\\Installer\\vswhere.exe" -latest -prerelease -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath') or { return error(err) } - res_output := res.output.trim_space() + res_output := res.output.trim_space().trim_right('\r\n') // println('res: "$res"') version := os.read_file('$res_output\\VC\\Auxiliary\\Build\\Microsoft.VCToolsVersion.default.txt') or { // println('Unable to find msvc version')