dev-conf.sh: disable libc c11threads when building with TSAN
.. since glibc C11threads don't seem to play nice with TSAN.
This commit is contained in:
Родитель
aac477c85a
Коммит
c3febe4733
|
@ -53,6 +53,7 @@ build () {
|
|||
echo "$btype build done"
|
||||
}
|
||||
|
||||
OPTS=""
|
||||
|
||||
case "$1" in
|
||||
clean)
|
||||
|
@ -64,6 +65,9 @@ case "$1" in
|
|||
;;
|
||||
tsan)
|
||||
FSAN='-fsanitize=thread'
|
||||
# C11 threads in glibc don't play nice with TSAN,
|
||||
# so use the builtin tinycthreads instead.
|
||||
OPTS="$OPTS --disable-c11threads"
|
||||
;;
|
||||
"")
|
||||
;;
|
||||
|
@ -91,8 +95,6 @@ if [[ ! -z $FSAN ]]; then
|
|||
export LDFLAGS="$LDFLAGS $FSAN"
|
||||
fi
|
||||
|
||||
OPTS=""
|
||||
|
||||
# enable devel asserts
|
||||
OPTS="$OPTS --enable-devel"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче