Win32: refine handing of missing-baseruby failure

`exit` in `cmd.exe` ignores non-option, non-digits argument, and exits with the current %ERRORLEVEL%.
This commit is contained in:
Nobuyoshi Nakada 2026-01-16 11:12:32 +09:00
parent 8c39d8d343
commit f7d3f675fe
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -52,7 +52,7 @@ prefix = $(prefix:\=/)
-baseruby-: nul
!if "$(HAVE_BASERUBY)" != "no"
@cd $(srcdir:/=\)\tool && $(BASERUBY:/=\) missing-baseruby.bat --verbose $(HAVE_BASERUBY:yes=|| exit )|| exit 0
@cd $(srcdir:/=\)\tool && $(BASERUBY:/=\) missing-baseruby.bat --verbose || exit $(HAVE_BASERUBY:yes=non-)0
!endif
-gmp-: