Skip to content

Sanitizer options #986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .evergreen/compile-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set -o errexit # Exit the script with error if any of the commands fail
# SKIP_MOCK_TESTS Skips running the libmongoc mock server tests after compiling
# Options for CMake:
# LIBBSON Build against bundled or external libbson
# SANITIZE Sanitizers to enable (comma-separated)
# EXTRA_CONFIGURE_FLAGS Extra configure flags to use
# EXTRA_CMAKE_PREFIX_PATH Extra directories to search for libraries/packages
# ZLIB Build against bundled or external zlib, or none
Expand Down Expand Up @@ -45,6 +46,7 @@ ZLIB=${ZLIB:-BUNDLED}
INSTALL_DIR=$(pwd)/install-dir

echo "CFLAGS: $CFLAGS"
echo "SANITIZE: $SANITIZE"
echo "MARCH: $MARCH"
echo "RELEASE: $RELEASE"
echo "DEBUG: $DEBUG"
Expand Down Expand Up @@ -198,6 +200,7 @@ esac
if [ "darwin" = "$OS" -a "arm64" = "$MARCH" ]; then
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DCMAKE_OSX_ARCHITECTURES=arm64"
fi
CONFIGURE_FLAGS="$CONFIGURE_FLAGS \"-DMONGO_SANITIZE=${SANITIZE}\""

if ! python3 build/mongodl.py --test -C csfle -V 5.3.1 -o . > /dev/null; then
echo "No csfle detected for this platform. Disabling MONGOC_TEST_USE_CSFLE."
Expand Down
Loading