diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-11-16 22:38:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 22:38:34 -0800 |
commit | 990ff24487fd0b6998231894825eb9cd4610494e (patch) | |
tree | 46c037f9feb147de353f906666c8099028e392d6 /configure.sh | |
parent | 6a24e015ca539d80317276761a42f0117dd43575 (diff) |
Add support for ThreadSanitizer instrumentation (#3467)
This commit adds support for compiling CVC4 with ThreadSanitizer
instrumentation. This is useful for debugging issues when CVC4 is used
in a multi-threaded context (e.g. #3292).
Diffstat (limited to 'configure.sh')
-rwxr-xr-x | configure.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.sh b/configure.sh index 701744570..5763fa7ce 100755 --- a/configure.sh +++ b/configure.sh @@ -46,6 +46,7 @@ The following flags enable optional features (disable with --no-<option name>). --python3 prefer using Python 3 (also for Python bindings) --asan build with ASan instrumentation --ubsan build with UBSan instrumentation + --tsan build with TSan instrumentation The following options configure parameterized features. @@ -110,6 +111,7 @@ buildtype=default abc=default asan=default ubsan=default +tsan=default assertions=default best=default cadical=default @@ -174,6 +176,9 @@ do --ubsan) ubsan=ON;; --no-ubsan) ubsan=OFF;; + --tsan) tsan=ON;; + --no-tsan) tsan=OFF;; + --assertions) assertions=ON;; --no-assertions) assertions=OFF;; @@ -356,6 +361,8 @@ cmake_opts="" && cmake_opts="$cmake_opts -DENABLE_ASAN=$asan" [ $ubsan != default ] \ && cmake_opts="$cmake_opts -DENABLE_UBSAN=$ubsan" +[ $tsan != default ] \ + && cmake_opts="$cmake_opts -DENABLE_TSAN=$tsan" [ $assertions != default ] \ && cmake_opts="$cmake_opts -DENABLE_ASSERTIONS=$assertions" [ $best != default ] \ |