Skip to content

Commit

Permalink
AddressSanitizer: detect_leaks is not supported on this platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Dec 30, 2024
1 parent b29daa6 commit e127c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ fi

# We do not compile with `-fsanitize=leak` because macOS clang++ does not support it.
# Instead, enable ASan (`-fsanitize=address`) to check for memory leaks.
export ASAN_OPTIONS=detect_leaks=1
if [ "$(uname)" != "Darwin" ]; then
export ASAN_OPTIONS=detect_leaks=1
fi

# Tests included with the repository

Expand Down

0 comments on commit e127c78

Please sign in to comment.