tsan: fix Go build on linux
librt is not linked in in Go build. llvm-svn: 252877
This commit is contained in:
parent
ba85da8482
commit
110094017c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue