Fail faster in builds

If `make` fails, there's no point in doing anything else.
This commit is contained in:
Markus Mäkelä 2018-10-05 11:02:06 +03:00
parent c10f56bea1
commit 59a1ef359d
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ mkdir _build
cd _build
cmake .. $cmake_flags
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
make
make || exit 1
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
then

View File

@ -10,7 +10,7 @@ cd ./MaxScale
mkdir _build
cd _build
cmake .. $cmake_flags
make
make || exit 1
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
then