tsan: fix Go build

Go linker does not like function-static objects.

llvm-svn: 200534
This commit is contained in:
Dmitry Vyukov 2014-01-31 11:20:55 +00:00
parent b024162c20
commit e63a09adb6
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@
namespace __sanitizer {
CommonFlags common_flags_dont_use;
void SetCommonFlagsDefaults(CommonFlags *f) {
f->symbolize = true;
f->external_symbolizer_path = 0;

View File

@ -69,8 +69,8 @@ struct CommonFlags {
};
inline CommonFlags *common_flags() {
static CommonFlags f;
return &f;
extern CommonFlags common_flags_dont_use;
return &common_flags_dont_use;
}
void SetCommonFlagsDefaults(CommonFlags *f);