Skip to content

Commit

Permalink
dev-conf.sh: disable libc c11threads when building with TSAN
Browse files Browse the repository at this point in the history
.. since glibc C11threads don't seem to play nice with TSAN.
  • Loading branch information
edenhill committed Sep 26, 2019
1 parent aac477c commit c3febe4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev-conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ build () {
echo "$btype build done"
}

OPTS=""

case "$1" in
clean)
Expand All @@ -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"
;;
"")
;;
Expand Down Expand Up @@ -91,8 +95,6 @@ if [[ ! -z $FSAN ]]; then
export LDFLAGS="$LDFLAGS $FSAN"
fi

OPTS=""

# enable devel asserts
OPTS="$OPTS --enable-devel"

Expand Down

0 comments on commit c3febe4

Please sign in to comment.