forked from OSchip/llvm-project
Fix lib/tsan/go/buildgo.sh for FreeBSD after r243051.
FreeBSD also needs to have sanitizer_linux_libcdep.cc included, otherwise linking will fail with "undefined reference to `__sanitizer::GetRSS()'". While here, tabify the FreeBSD part, similar to the other parts. llvm-svn: 260839
This commit is contained in:
parent
bece8d517d
commit
042c4858b0
|
|
@ -50,19 +50,20 @@ if [ "`uname -a | grep Linux`" != "" ]; then
|
||||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||||
"
|
"
|
||||||
elif [ "`uname -a | grep FreeBSD`" != "" ]; then
|
elif [ "`uname -a | grep FreeBSD`" != "" ]; then
|
||||||
SUFFIX="freebsd_amd64"
|
SUFFIX="freebsd_amd64"
|
||||||
OSCFLAGS="-fno-strict-aliasing -fPIC -Werror"
|
OSCFLAGS="-fno-strict-aliasing -fPIC -Werror"
|
||||||
OSLDFLAGS="-lpthread -fPIC -fpie"
|
OSLDFLAGS="-lpthread -fPIC -fpie"
|
||||||
SRCS="
|
SRCS="
|
||||||
$SRCS
|
$SRCS
|
||||||
../rtl/tsan_platform_linux.cc
|
../rtl/tsan_platform_linux.cc
|
||||||
../../sanitizer_common/sanitizer_posix.cc
|
../../sanitizer_common/sanitizer_posix.cc
|
||||||
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
../../sanitizer_common/sanitizer_posix_libcdep.cc
|
||||||
../../sanitizer_common/sanitizer_procmaps_common.cc
|
../../sanitizer_common/sanitizer_procmaps_common.cc
|
||||||
../../sanitizer_common/sanitizer_procmaps_freebsd.cc
|
../../sanitizer_common/sanitizer_procmaps_freebsd.cc
|
||||||
../../sanitizer_common/sanitizer_linux.cc
|
../../sanitizer_common/sanitizer_linux.cc
|
||||||
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
../../sanitizer_common/sanitizer_linux_libcdep.cc
|
||||||
"
|
../../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
||||||
|
"
|
||||||
elif [ "`uname -a | grep Darwin`" != "" ]; then
|
elif [ "`uname -a | grep Darwin`" != "" ]; then
|
||||||
SUFFIX="darwin_amd64"
|
SUFFIX="darwin_amd64"
|
||||||
OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option"
|
OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue