Skip to content

Commit 303272b

Browse files
committed
Add specific tsan build/run
1 parent cd704e7 commit 303272b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ run_matrix_for_current_compiler() {
118118
fi
119119
fi
120120

121+
# TSan with libsodium (avoids OpenSSL false positives).
122+
# Only clang, only x86_64 (tsan not reliable elsewhere).
123+
if [[ "${compiler}" == "clang" ]] && [[ "${uname_M}" == x86_64 ]]; then
124+
run_single --compiler "${compiler}" --build-dir build-tsan \
125+
--sanitizer tsan \
126+
--crypto libsodium --crypto25519 libsodium \
127+
--targets test_connection test_crypto \
128+
--run-tests
129+
fi
130+
121131
# Build normal unsanitized binaries
122132
run_single --compiler "${compiler}" --build-dir build-cmake --build-type RelWithDebInfo --run-tests
123133

0 commit comments

Comments
 (0)