diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-01-30 09:46:53 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-01-30 09:46:53 +0000 |
commit | d6b9348bf350a9f0ea66d333193fc728ba899b60 (patch) | |
tree | 5be084fc5b22a7f1d35365e180dd2fdbe3bd9e51 /compiler-rt/lib/tsan/rtl/tsan_defs.h | |
parent | 7b038a23819c391d0ba649db8755d3da5cda9ec2 (diff) | |
download | bcm5719-llvm-d6b9348bf350a9f0ea66d333193fc728ba899b60.tar.gz bcm5719-llvm-d6b9348bf350a9f0ea66d333193fc728ba899b60.zip |
tsan: introduce a helped macro CPP_WEAK (Go linker does not support weak symbols)
llvm-svn: 173917
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_defs.h')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_defs.h b/compiler-rt/lib/tsan/rtl/tsan_defs.h index e0c04733f0a..125458afd11 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_defs.h +++ b/compiler-rt/lib/tsan/rtl/tsan_defs.h @@ -28,10 +28,13 @@ namespace __tsan { const bool kGoMode = true; const bool kCppMode = false; const char *const kTsanOptionsEnv = "GORACE"; +#define CPP_WEAK WEAK #else const bool kGoMode = false; const bool kCppMode = true; const char *const kTsanOptionsEnv = "TSAN_OPTIONS"; +// Go linker does not support weak symbols. +#define CPP_WEAK #endif const int kTidBits = 13; |