Skip to content

Commit

Permalink
Change bat script to fail on Windows if unable to compile (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty authored Feb 4, 2025
1 parent a40aec2 commit b8eda4d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_plugin.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set PLUGIN_NAME=cloudfuse_plugin

set PLUGIN_BUILD_DIR=%BUILD_DIR%\%PLUGIN_NAME%
@echo on
if not exist "%PLUGIN_BUILD_DIR%\" mkdir "%PLUGIN_BUILD_DIR%" || @exit /b
cd "%PLUGIN_BUILD_DIR%" || @exit /b
if not exist "%PLUGIN_BUILD_DIR%\" mkdir "%PLUGIN_BUILD_DIR%" || @exit /b 70
cd "%PLUGIN_BUILD_DIR%" || @exit /b 70

cmake "%SOURCE_DIR%" -G "Visual Studio 17 2022" -Ax64 %1 %2 %3 %4 %5 %6 %7 %8 %9 --preset default || @exit /b
cmake --build . %BUILD_OPTIONS% || @exit /b
cmake "%SOURCE_DIR%" -G "Visual Studio 17 2022" -Ax64 %1 %2 %3 %4 %5 %6 %7 %8 %9 --preset default || @exit /b 70
cmake --build . %BUILD_OPTIONS% || @exit /b 70
@echo off

set ARTIFACT=%PLUGIN_BUILD_DIR%\%BUILD_TYPE%\%PLUGIN_NAME%.dll
Expand All @@ -65,11 +65,11 @@ set UNIT_TESTS="unit_tests"

set UNIT_TESTS_BUILD_DIR=%BUILD_DIR%\%UNIT_TESTS%
@echo on
if not exist "%UNIT_TESTS_BUILD_DIR%" mkdir "%UNIT_TESTS_BUILD_DIR%" || @exit /b
cd "%UNIT_TESTS_BUILD_DIR%" || @exit /b
if not exist "%UNIT_TESTS_BUILD_DIR%" mkdir "%UNIT_TESTS_BUILD_DIR%" || @exit /b 70
cd "%UNIT_TESTS_BUILD_DIR%" || @exit /b 70

cmake "%SOURCE_DIR%" -G "Visual Studio 17 2022" -Ax64 %1 %2 %3 %4 %5 %6 %7 %8 %9 --preset default || @exit /b
cmake --build . %BUILD_OPTIONS% || @exit /b
cmake "%SOURCE_DIR%" -G "Visual Studio 17 2022" -Ax64 %1 %2 %3 %4 %5 %6 %7 %8 %9 --preset default || @exit /b 70
cmake --build . %BUILD_OPTIONS% || @exit /b 70
@echo off

set ARTIFACT=%UNIT_TESTS_BUILD_DIR%\%BUILD_TYPE%\analytics_plugin_ut.exe
Expand Down

0 comments on commit b8eda4d

Please sign in to comment.