diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-17 16:12:10 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-18 11:24:07 -0300 |
commit | 44fc0da969f22de505f2cc293a08ab979e079890 (patch) | |
tree | 5c793075d97ce8e287268de631eb20ac5511647d /src | |
parent | 7754f6a90d99fd6108b16d7a6771cfd6c0739544 (diff) | |
download | luarocks-44fc0da969f22de505f2cc293a08ab979e079890.tar.gz luarocks-44fc0da969f22de505f2cc293a08ab979e079890.tar.bz2 luarocks-44fc0da969f22de505f2cc293a08ab979e079890.zip |
cfg: detect Visual Studio Developer Console
Diffstat (limited to 'src')
-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 |