Skip to content

Commit

Permalink
Translate exit code of mt.exe in bat file
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin authored and mstorsjo committed May 8, 2023
1 parent feb4676 commit cd0fab2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions wrappers/mt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

. $(dirname $0)/msvcenv.sh
$(dirname $0)/wine-msvc.sh $SDKBINDIR/mt.exe "${@#/notify_update}"

if [[ $? == 0 && "$@" =~ '/notify_update' ]]; then
# https://gitlab.kitware.com/cmake/cmake/-/blob/0991023c30ed5b83bcb1446b5bcc9c1eae028835/Source/cmcmd.cxx#L2388
exit 187
fi
$(dirname $0)/wine-msvc.sh $SDKBINDIR/mt.exe "$@"
5 changes: 5 additions & 0 deletions wrappers/wine-msvc.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
@echo off

%* %WINE_MSVC_ARGS% >%WINE_MSVC_STDOUT% 2>%WINE_MSVC_STDERR%

REM https://gitlab.kitware.com/cmake/cmake/-/blob/0991023c30ed5b83bcb1446b5bcc9c1eae028835/Source/cmcmd.cxx#L2388
if /I "%~n1"=="mt" (
if %errorlevel%==1090650113 (exit 187)
)

0 comments on commit cd0fab2

Please sign in to comment.