diff options
-rw-r--r-- | src/luarocks/core/cfg.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index de8a93bf..cfbbd144 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
@@ -583,7 +583,14 @@ function cfg.init(lua_data, project_dir, warning) | |||
583 | local system = hardcoded.SYSTEM | 583 | local system = hardcoded.SYSTEM |
584 | local processor = hardcoded.PROCESSOR | 584 | local processor = hardcoded.PROCESSOR |
585 | if is_windows then | 585 | if is_windows then |
586 | system = system or "Windows" | 586 | if not system then |
587 | if os.getenv("VCINSTALLDIR") then | ||
588 | -- running from the Development Command prompt for VS 2017 | ||
589 | system = "Windows" | ||
590 | else | ||
591 | system = "MINGW" | ||
592 | end | ||
593 | end | ||
587 | if not processor then | 594 | if not processor then |
588 | local pe_parser = require("luarocks.fs.win32.pe-parser") | 595 | local pe_parser = require("luarocks.fs.win32.pe-parser") |
589 | local err | 596 | local err |