diff options
author | Xpol Wan <xpolife@gmail.com> | 2015-10-27 00:35:51 +0800 |
---|---|---|
committer | Xpol Wan <xpolife@gmail.com> | 2015-10-27 00:35:51 +0800 |
commit | 04e45199b0a76808fce9850713ba8e79a47cb9fd (patch) | |
tree | f213d1ec7ffec41a2d6822cb55052750ec2fbcaf | |
parent | a5cec1848d8318f4ea8f28daf2f221d71178cf5d (diff) | |
download | luarocks-04e45199b0a76808fce9850713ba8e79a47cb9fd.tar.gz luarocks-04e45199b0a76808fce9850713ba8e79a47cb9fd.tar.bz2 luarocks-04e45199b0a76808fce9850713ba8e79a47cb9fd.zip |
Don't setup msvc when user desires MinGW.
-rw-r--r-- | install.bat | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install.bat b/install.bat index de572d3d..c3099988 100644 --- a/install.bat +++ b/install.bat | |||
@@ -436,6 +436,8 @@ end | |||
436 | -- returns the batch command to setup msvc compiler path. | 436 | -- returns the batch command to setup msvc compiler path. |
437 | -- requires vars.LUA_RUNTIME and vars.UNAME_M to be set before calling this function. | 437 | -- requires vars.LUA_RUNTIME and vars.UNAME_M to be set before calling this function. |
438 | local function get_msvc_env_setup_cmd() | 438 | local function get_msvc_env_setup_cmd() |
439 | if USE_MINGW then return "" end -- Don't setup msvc for MinGW. | ||
440 | |||
439 | local product_dir = get_visual_studio_directory() | 441 | local product_dir = get_visual_studio_directory() |
440 | local x64 = vars.UNAME_M=="x86_64" | 442 | local x64 = vars.UNAME_M=="x86_64" |
441 | 443 | ||