Refactored parallel build methods

This commit is contained in:
John Wellbelove 2023-07-04 18:20:20 +01:00
parent dda6ae53c8
commit cb99d47f81
2 changed files with 19 additions and 5 deletions

View File

@ -60,10 +60,17 @@ ChecksCompleted()
cd syntax_check || exit 1
echo "" > log.txt
export CMAKE_BUILD_PARALLEL_LEVEL=6
#******************************************************************************
# Set the number of concurrent processes to use.
#******************************************************************************
if [ $# -eq 0 ]; then
export CMAKE_BUILD_PARALLEL_LEVEL=4
else
export CMAKE_BUILD_PARALLEL_LEVEL=$1
fi
echo ""
echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" jobs"
echo "Using "$CMAKE_BUILD_PARALLEL_LEVEL" concurrent processes"
###############################################################################
cd c++03 || exit 1

View File

@ -9,8 +9,6 @@ echo "ETL Tests" > log.txt
export ASAN_OPTIONS=symbol_line=1
export ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-14/bin//llvm-symbolizer
export CMAKE_BUILD_PARALLEL_LEVEL=6
echo -e
testname="Test Name Not Set"
@ -129,8 +127,17 @@ else
opt="-O0"
fi
#******************************************************************************
# Set the number of concurrent processes to use.
#******************************************************************************
if [ $# -eq 2 ]; then
export CMAKE_BUILD_PARALLEL_LEVEL=4
else
export CMAKE_BUILD_PARALLEL_LEVEL=$3
fi
echo ""
echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" jobs"
echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" concurrent processes"
#******************************************************************************
# GCC