From: Vitaly Buka Date: Thu, 5 Nov 2020 02:34:19 +0000 (-0800) Subject: [sanitizer] Quick fix for non-Linux build X-Git-Tag: llvmorg-13-init~7029 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbd4ebffd4a634a9256f5eb33b3cce06ade8d809;p=platform%2Fupstream%2Fllvm.git [sanitizer] Quick fix for non-Linux build --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp index ecfe24d..18bef02 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp @@ -126,8 +126,10 @@ void InitializeCommonFlags(CommonFlags *cf) { cf->coverage |= cf->html_cov_report; SetVerbosity(cf->verbosity); - if (SANITIZER_ANDROID && !HAS_ANDROID_THREAD_PROPERTIES_API) +#if SANITIZER_ANDROID + if (!HAS_ANDROID_THREAD_PROPERTIES_API) cf->detect_leaks = false; +#endif } } // namespace __sanitizer