Skip to content

Commit

Permalink
fix %errorlevel% on build_win_premake.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sak32009 committed Aug 18, 2024
1 parent 24ae0c2 commit 1b7909d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_win_premake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ set /a "BUILD_DEPS=0"
if %BUILD_DEPS% equ 1 (
set "CMAKE_GENERATOR=Visual Studio 17 2022"
call "%PREMAKE_EXE%" --file="premake5-deps.lua" --64-build --32-build --all-ext --all-build --j=2 --verbose --clean --os=windows vs2022
if %errorlevel% neq 0 (
if !errorlevel! neq 0 (
goto :end_script_with_err
)
goto :end_script
Expand Down Expand Up @@ -89,7 +89,7 @@ set /a "BUILD_DEPS=0"
set "BUILD_TARGET=%%C"
echo. & echo: building !BUILD_TARGET! !BUILD_TYPE! !BUILD_PLATFORM!
call "%MSBUILD_EXE%" /nologo -m:%MAX_THREADS% -v:n /p:Configuration=!BUILD_TYPE!,Platform=!BUILD_PLATFORM! /target:!BUILD_TARGET! "%SLN_FILE%"
if %errorlevel% neq 0 (
if !errorlevel! neq 0 (
goto :end_script_with_err
)
)
Expand Down

0 comments on commit 1b7909d

Please sign in to comment.