diff options
-rwxr-xr-x | .circleci/cmake-asan | 2 | ||||
-rwxr-xr-x | .circleci/cmake-tsan | 2 | ||||
-rw-r--r-- | .circleci/config.yml | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/.circleci/cmake-asan b/.circleci/cmake-asan index c4bce4fc..0d796aba 100755 --- a/.circleci/cmake-asan +++ b/.circleci/cmake-asan | |||
@@ -7,6 +7,7 @@ CACHEDIR="$HOME/cache" | |||
7 | . ".travis/flags-$CC.sh" | 7 | . ".travis/flags-$CC.sh" |
8 | add_flag -Werror | 8 | add_flag -Werror |
9 | add_flag -fdiagnostics-color=always | 9 | add_flag -fdiagnostics-color=always |
10 | add_flag -fno-omit-frame-pointer | ||
10 | add_flag -fsanitize=address,undefined | 11 | add_flag -fsanitize=address,undefined |
11 | cmake -B_build -H. -GNinja \ | 12 | cmake -B_build -H. -GNinja \ |
12 | -DCMAKE_C_FLAGS="$C_FLAGS" \ | 13 | -DCMAKE_C_FLAGS="$C_FLAGS" \ |
@@ -29,5 +30,6 @@ export ASAN_OPTIONS="detect_invalid_pointer_pairs=1" | |||
29 | export ASAN_OPTIONS="$ASAN_OPTIONS,detect_stack_use_after_return=1" | 30 | export ASAN_OPTIONS="$ASAN_OPTIONS,detect_stack_use_after_return=1" |
30 | export ASAN_OPTIONS="$ASAN_OPTIONS,strict_init_order=1" | 31 | export ASAN_OPTIONS="$ASAN_OPTIONS,strict_init_order=1" |
31 | export ASAN_OPTIONS="$ASAN_OPTIONS,strict_string_checks=1" | 32 | export ASAN_OPTIONS="$ASAN_OPTIONS,strict_string_checks=1" |
33 | export ASAN_OPTIONS="$ASAN_OPTIONS,symbolize=1" | ||
32 | ctest -j50 --output-on-failure || | 34 | ctest -j50 --output-on-failure || |
33 | ctest -j50 --output-on-failure --rerun-failed | 35 | ctest -j50 --output-on-failure --rerun-failed |
diff --git a/.circleci/cmake-tsan b/.circleci/cmake-tsan index bb850e7c..b351e534 100755 --- a/.circleci/cmake-tsan +++ b/.circleci/cmake-tsan | |||
@@ -7,6 +7,7 @@ CACHEDIR="$HOME/cache" | |||
7 | . ".travis/flags-$CC.sh" | 7 | . ".travis/flags-$CC.sh" |
8 | add_flag -Werror | 8 | add_flag -Werror |
9 | add_flag -fdiagnostics-color=always | 9 | add_flag -fdiagnostics-color=always |
10 | add_flag -fno-omit-frame-pointer | ||
10 | add_flag -fsanitize=thread | 11 | add_flag -fsanitize=thread |
11 | cmake -H. -B_build -GNinja \ | 12 | cmake -H. -B_build -GNinja \ |
12 | -DCMAKE_C_FLAGS="$C_FLAGS" \ | 13 | -DCMAKE_C_FLAGS="$C_FLAGS" \ |
@@ -27,5 +28,6 @@ ninja install -j$(nproc) | |||
27 | 28 | ||
28 | export TSAN_OPTIONS="halt_on_error=1" | 29 | export TSAN_OPTIONS="halt_on_error=1" |
29 | export TSAN_OPTIONS="$TSAN_OPTIONS,second_deadlock_stack=1" | 30 | export TSAN_OPTIONS="$TSAN_OPTIONS,second_deadlock_stack=1" |
31 | export TSAN_OPTIONS="$TSAN_OPTIONS,symbolize=1" | ||
30 | ctest -j50 --output-on-failure || | 32 | ctest -j50 --output-on-failure || |
31 | ctest -j50 --output-on-failure --rerun-failed | 33 | ctest -j50 --output-on-failure --rerun-failed |
diff --git a/.circleci/config.yml b/.circleci/config.yml index 2182fefb..41533dd2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -26,6 +26,7 @@ jobs: | |||
26 | libopus-dev | 26 | libopus-dev |
27 | libsodium-dev | 27 | libsodium-dev |
28 | libvpx-dev | 28 | libvpx-dev |
29 | llvm-dev | ||
29 | ninja-build | 30 | ninja-build |
30 | pkg-config | 31 | pkg-config |
31 | - run: CC=clang .circleci/cmake-asan | 32 | - run: CC=clang .circleci/cmake-asan |