win32: do not use "pwd" on windows, use "echo %cd%"

master
Hisham Muhammad 2022-02-16 18:31:44 -03:00
parent 0b15b5f450
commit c3caaecfa0
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -4,7 +4,7 @@ following licenses:
* For 7z.exe and 7z.dll, please see COPYING_7z for details.
* find.exe, mv.exe, wget.exe, ls.exe, pwd.exe, md5sum.exe,
* find.exe, mv.exe, wget.exe, ls.exe, md5sum.exe,
cp.exe, and uname.exe are part of UnxUtils, check
http://unxutils.sourceforge.net/ for license information.

Binary file not shown.