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:
Magnus Edenhill 2019-09-26 19:49:49 +02:00
Родитель aac477c85a
Коммит c3febe4733
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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"