Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build.sh
Show All 35 Lines | |||||
if [[ ! -z "${ENABLE_DEBUG}" ]]; then | if [[ ! -z "${ENABLE_DEBUG}" ]]; then | ||||
echo "*** Building with debug" | echo "*** Building with debug" | ||||
CONFIGURE_FLAGS+=("--enable-debug") | CONFIGURE_FLAGS+=("--enable-debug") | ||||
fi | fi | ||||
../configure "${CONFIGURE_FLAGS[@]}" | ../configure "${CONFIGURE_FLAGS[@]}" | ||||
# Sanitizers options, not used if sanitizers are not enabled | # Base directories for sanitizer related files | ||||
SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | ||||
export ASAN_OPTIONS="" | SAN_LOG_PATH="${BUILD_DIR}/sanitizer_logs" | ||||
export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan" | |||||
export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan" | mkdir -p "${SAN_LOG_PATH}" | ||||
export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1" | |||||
# Sanitizers options, not used if sanitizers are not enabled | |||||
export ASAN_OPTIONS="log_path=${SAN_LOG_PATH}/asan.log" | |||||
export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_PATH}/lsan.log" | |||||
export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_PATH}/tsan.log" | |||||
export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_PATH}/ubsan.log" | |||||
# Run build | # Run build | ||||
make -j ${THREADS} | make -j ${THREADS} | ||||
# Default to nothing | # Default to nothing | ||||
: ${DISABLE_TESTS:=} | : ${DISABLE_TESTS:=} | ||||
# If DISABLE_TESTS is unset (default), run the tests | # If DISABLE_TESTS is unset (default), run the tests | ||||
Show All 26 Lines |