diff --git a/.cicd/build.sh b/.cicd/build.sh index 4acfd81ead7..2688b65413a 100755 --- a/.cicd/build.sh +++ b/.cicd/build.sh @@ -2,7 +2,7 @@ set -eo pipefail . ./.cicd/helpers/general.sh mkdir -p $BUILD_DIR -CMAKE_EXTRAS="-DBUILD_MONGO_DB_PLUGIN=true" +CMAKE_EXTRAS="-DBUILD_MONGO_DB_PLUGIN=true -DCMAKE_BUILD_TYPE='Release'" if [[ $(uname) == 'Darwin' ]]; then # You can't use chained commands in execute [[ $TRAVIS == true ]] && export PINNED=false && ccache -s && CMAKE_EXTRAS="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache" && ./$CICD_DIR/platforms/macos-10.14.sh @@ -34,7 +34,7 @@ else # Linux PRE_COMMANDS="$PRE_COMMANDS && export PATH=/usr/lib/ccache:\\\$PATH" CMAKE_EXTRAS="$CMAKE_EXTRAS -DCMAKE_CXX_COMPILER='clang++' -DCMAKE_C_COMPILER='clang'" fi - BUILD_COMMANDS="cmake $CMAKE_EXTRAS -DCMAKE_BUILD_TYPE='Release' .. && make -j$JOBS" + BUILD_COMMANDS="cmake $CMAKE_EXTRAS .. && make -j$JOBS" # Docker Commands if [[ $BUILDKITE == true ]]; then # Generate Base Images