aboutsummaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2015-12-01 21:24:56 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2015-12-01 21:24:56 +0100
commit30028a3e59b81bccb6ccd81609eb198e74b58ca5 (patch)
treeaa8e84f9a807cbe569dca7afa8c24416cb5dc68a /install.bat
parentfd88e3664f2dfb7fad4deb99e1d4ad79a56f4bcc (diff)
downloadluarocks-30028a3e59b81bccb6ccd81609eb198e74b58ca5.tar.gz
luarocks-30028a3e59b81bccb6ccd81609eb198e74b58ca5.tar.bz2
luarocks-30028a3e59b81bccb6ccd81609eb198e74b58ca5.zip
added debug/release option for SDK detection
Diffstat (limited to 'install.bat')
-rw-r--r--install.bat3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.bat b/install.bat
index 29c42d0e..4786906b 100644
--- a/install.bat
+++ b/install.bat
@@ -502,6 +502,7 @@ local function get_msvc_env_setup_cmd()
502 502
503 assert(type(vars.UNAME_M) == "string", "requires vars.UNAME_M to be set before calling this function.") 503 assert(type(vars.UNAME_M) == "string", "requires vars.UNAME_M to be set before calling this function.")
504 local x64 = vars.UNAME_M=="x86_64" 504 local x64 = vars.UNAME_M=="x86_64"
505 local debug = vars.LUA_RUNTIME:find("D$") -- runtime ending with "D" is a debug runtime
505 506
506 -- 1. try visual studio command line tools 507 -- 1. try visual studio command line tools
507 local vcdir = get_visual_studio_directory() 508 local vcdir = get_visual_studio_directory()
@@ -525,7 +526,7 @@ local function get_msvc_env_setup_cmd()
525 if wsdkdir then 526 if wsdkdir then
526 local setenv = wsdkdir.."Bin\\SetEnv.cmd" 527 local setenv = wsdkdir.."Bin\\SetEnv.cmd"
527 if exists(setenv) then 528 if exists(setenv) then
528 return ('call "%s" /Release /%s'):format(setenv, x64 and "x64" or "x86") 529 return ('call "%s" /%s /%s'):format(setenv, debug and "Debug" or "Release" ,x64 and "x64" or "x86")
529 end 530 end
530 end 531 end
531 532