Skip to content

Commit bbd4ebf

Browse files
committed
[sanitizer] Quick fix for non-Linux build
1 parent e15f424 commit bbd4ebf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ void InitializeCommonFlags(CommonFlags *cf) {
126126
cf->coverage |= cf->html_cov_report;
127127
SetVerbosity(cf->verbosity);
128128

129-
if (SANITIZER_ANDROID && !HAS_ANDROID_THREAD_PROPERTIES_API)
129+
#if SANITIZER_ANDROID
130+
if (!HAS_ANDROID_THREAD_PROPERTIES_API)
130131
cf->detect_leaks = false;
132+
#endif
131133
}
132134

133135
} // namespace __sanitizer

0 commit comments

Comments
 (0)