aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/core/cfg.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index e9139a4e..8c2d7d79 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -813,11 +813,13 @@ function cfg.init(detected, warning)
813 813
814 local defaults = make_defaults(cfg.lua_version, processor, platforms, cfg.home) 814 local defaults = make_defaults(cfg.lua_version, processor, platforms, cfg.home)
815 815
816 if platforms.windows and hardcoded.WIN_TOOLS then 816 if platforms.windows and not platforms.msys2_mingw_w64 and hardcoded.WIN_TOOLS then
817 local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "WGET", } 817 local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "WGET", }
818 for _, tool in ipairs(tools) do 818 for _, tool in ipairs(tools) do
819 defaults.variables[tool] = '"' .. dir.path(hardcoded.WIN_TOOLS, defaults.variables[tool] .. '.exe') .. '"' 819 defaults.variables[tool] = '"' .. dir.path(hardcoded.WIN_TOOLS, defaults.variables[tool] .. '.exe') .. '"'
820 end 820 end
821 elseif platforms.msys2_mingw_w64 then
822 defaults.fs_use_modules = false
821 else 823 else
822 defaults.fs_use_modules = true 824 defaults.fs_use_modules = true
823 end 825 end