aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Xia <ruixia@microsoft.com>2019-06-19 16:41:53 -0700
committerHisham Muhammad <hisham@gobolinux.org>2019-07-26 12:49:56 -0300
commit8bbfa80cdb248254c323abc8627a9e63bc0469f1 (patch)
treee1e725f573d8e8dcd48415a5d5653965819c9da8
parentdd926404890d7cc71ce8538384305c90e318abbb (diff)
downloadluarocks-8bbfa80cdb248254c323abc8627a9e63bc0469f1.tar.gz
luarocks-8bbfa80cdb248254c323abc8627a9e63bc0469f1.tar.bz2
luarocks-8bbfa80cdb248254c323abc8627a9e63bc0469f1.zip
Report any error message encountered by `get_visual_studio_directory_from_vswhere`
-rw-r--r--install.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/install.bat b/install.bat
index cdbc6377..f0305ab4 100644
--- a/install.bat
+++ b/install.bat
@@ -547,7 +547,10 @@ local function get_msvc_env_setup_cmd()
547 local x64 = vars.UNAME_M=="x86_64" 547 local x64 = vars.UNAME_M=="x86_64"
548 548
549 -- 1. try visual studio command line tools of VS 2017 or higher 549 -- 1. try visual studio command line tools of VS 2017 or higher
550 local vsdir = get_visual_studio_directory_from_vswhere() 550 local vsdir, err = get_visual_studio_directory_from_vswhere()
551 if err then
552 print(" Error when finding Visual Studio directory from vswhere: "..err)
553 end
551 if vsdir then 554 if vsdir then
552 local vcvarsall = vsdir .. '\\VC\\Auxiliary\\Build\\vcvarsall.bat' 555 local vcvarsall = vsdir .. '\\VC\\Auxiliary\\Build\\vcvarsall.bat'
553 if exists(vcvarsall) then 556 if exists(vcvarsall) then