tsan: replace macro check with constant check

As per comments in 252892 commit.

llvm-svn: 253216
This commit is contained in:
Dmitry Vyukov 2015-11-16 15:55:38 +00:00
parent dd1b261f3a
commit 3dd7fe6d86
1 changed files with 7 additions and 7 deletions

View File

@ -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;