Allow nmake to ignore errors

cmd.exe can redirect file descriptor other than STDOUT, while
command.com couldn't.
This commit is contained in:
Nobuyoshi Nakada 2023-07-10 19:19:37 +09:00
parent c8d0470bb0
commit 2951e3d83b
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2023-07-10 11:13:51 +00:00

View File

@ -2699,7 +2699,7 @@ MESSAGE
when $mswin
$nmake = ?m if /nmake/i =~ make
end
$ignore_error = $nmake ? '' : " 2> #{File::NULL} || true"
$ignore_error = " 2> #{File::NULL} || #{$mswin ? 'exit /b0' : 'true'}"
RbConfig::CONFIG["srcdir"] = CONFIG["srcdir"] =
$srcdir = arg_config("--srcdir", File.dirname($0))