tsan: fix Go build on linux

librt is not linked in in Go build.

llvm-svn: 252877
This commit is contained in:
Dmitry Vyukov 2015-11-12 11:54:25 +00:00
parent ba85da8482
commit 110094017c
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ void PrepareForSandboxing(__sanitizer_sandbox_arguments *args) {
#endif
}
#if SANITIZER_ANDROID
#if SANITIZER_ANDROID || SANITIZER_GO
int GetNamedMappingFd(const char *name, uptr size) {
return -1;
}

View File

@ -36,7 +36,7 @@ SRCS="
if [ "`uname -a | grep Linux`" != "" ]; then
SUFFIX="linux_amd64"
OSCFLAGS="-fPIC -ffreestanding -Wno-maybe-uninitialized -Wno-unused-const-variable -Werror -Wno-unknown-warning-option"
OSLDFLAGS="-lpthread -lrt -fPIC -fpie"
OSLDFLAGS="-lpthread -fPIC -fpie"
SRCS="
$SRCS
../rtl/tsan_platform_linux.cc