Skip to content

Commit 87735b5

Browse files
committed
tsan: don't check libc dependency on NetBSD
This new check fails on NetBSD as well. It is meant to prevent regressions, so disable it on NetBSD. Reported-by: Keith Randall (khr)
1 parent 3505226 commit 87735b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/tsan/go/buildgo.sh

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ elif [ "`uname -a | grep FreeBSD`" != "" ]; then
8787
../../sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
8888
"
8989
elif [ "`uname -a | grep NetBSD`" != "" ]; then
90+
# The resulting object still depends on libc.
91+
# We removed this dependency for Go runtime for other OSes,
92+
# and we should remove it for NetBSD as well, but there is no pressing need.
93+
DEPENDS_ON_LIBC=1
9094
SUFFIX="netbsd_amd64"
9195
OSCFLAGS="-fno-strict-aliasing -fPIC -Werror"
9296
ARCHCFLAGS="-m64"

0 commit comments

Comments
 (0)