forked from OSchip/llvm-project
tsan: replace macro check with constant check
As per comments in 252892 commit. llvm-svn: 253216
This commit is contained in:
parent
dd1b261f3a
commit
3dd7fe6d86
|
@ -61,13 +61,13 @@ void InitializeFlags(Flags *f, const char *env) {
|
|||
CommonFlags cf;
|
||||
cf.CopyFrom(*common_flags());
|
||||
cf.allow_addr2line = true;
|
||||
#ifdef SANITIZER_GO
|
||||
// Does not work as expected for Go: runtime handles SIGABRT and crashes.
|
||||
cf.abort_on_error = false;
|
||||
// Go does not have mutexes.
|
||||
#else
|
||||
cf.detect_deadlocks = true;
|
||||
#endif
|
||||
if (kGoMode) {
|
||||
// Does not work as expected for Go: runtime handles SIGABRT and crashes.
|
||||
cf.abort_on_error = false;
|
||||
// Go does not have mutexes.
|
||||
} else {
|
||||
cf.detect_deadlocks = true;
|
||||
}
|
||||
cf.print_suppressions = false;
|
||||
cf.stack_trace_format = " #%n %f %S %M";
|
||||
cf.exitcode = 66;
|
||||
|
|
Loading…
Reference in New Issue