forked from OSchip/llvm-project
tsan: fix Go build
Go linker does not like function-static objects. llvm-svn: 200534
This commit is contained in:
parent
b024162c20
commit
e63a09adb6
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
namespace __sanitizer {
|
namespace __sanitizer {
|
||||||
|
|
||||||
|
CommonFlags common_flags_dont_use;
|
||||||
|
|
||||||
void SetCommonFlagsDefaults(CommonFlags *f) {
|
void SetCommonFlagsDefaults(CommonFlags *f) {
|
||||||
f->symbolize = true;
|
f->symbolize = true;
|
||||||
f->external_symbolizer_path = 0;
|
f->external_symbolizer_path = 0;
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,8 @@ struct CommonFlags {
|
||||||
};
|
};
|
||||||
|
|
||||||
inline CommonFlags *common_flags() {
|
inline CommonFlags *common_flags() {
|
||||||
static CommonFlags f;
|
extern CommonFlags common_flags_dont_use;
|
||||||
return &f;
|
return &common_flags_dont_use;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetCommonFlagsDefaults(CommonFlags *f);
|
void SetCommonFlagsDefaults(CommonFlags *f);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue