From 00184f35d70af9b2cf746e8a2de156d06c88101b Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Tue, 27 Oct 2015 00:39:07 +0800 Subject: Move mingw test out of get_msvc_env_setup_cmd(). --- install.bat | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.bat b/install.bat index c3099988..cfc5f074 100644 --- a/install.bat +++ b/install.bat @@ -436,8 +436,6 @@ end -- returns the batch command to setup msvc compiler path. -- requires vars.LUA_RUNTIME and vars.UNAME_M to be set before calling this function. local function get_msvc_env_setup_cmd() - if USE_MINGW then return "" end -- Don't setup msvc for MinGW. - local product_dir = get_visual_studio_directory() local x64 = vars.UNAME_M=="x86_64" @@ -678,7 +676,7 @@ if SELFCONTAINED then vars.TREE_ROOT = vars.PREFIX..[[\systree]] REGISTRY = false end -vars.COMPILER_ENV_CMD = get_msvc_env_setup_cmd() +vars.COMPILER_ENV_CMD = USE_MINGW and "" or get_msvc_env_setup_cmd() print(S[[ -- cgit v1.2.3-55-g6feb