From c3caaecfa06467200dbd42e079baf8b468a49e6a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 16 Feb 2022 18:31:44 -0300 Subject: win32: do not use "pwd" on windows, use "echo %cd%" --- src/luarocks/core/cfg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 58ed1ac6..fca315e0 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -285,6 +285,7 @@ local function make_defaults(lua_version, target_cpu, platforms, home) defaults.external_deps_dirs = { "c:/external/", "c:/windows/system32" } defaults.makefile = "Makefile.win" + defaults.variables.PWD = "echo %cd%" defaults.variables.MAKE = "nmake" defaults.variables.CC = "cl" defaults.variables.RC = "rc" @@ -762,7 +763,7 @@ function cfg.init(detected, warning) local defaults = make_defaults(cfg.lua_version, processor, platforms, cfg.home) if platforms.windows and hardcoded.WIN_TOOLS then - local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "PWD", "WGET", } + local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "WGET", } for _, tool in ipairs(tools) do defaults.variables[tool] = '"' .. hardcoded.WIN_TOOLS .. "/" .. defaults.variables[tool] .. '.exe"' end -- cgit v1.2.3-55-g6feb