[compiler-rt] [compiler-rt] Add libbacktrace support on Windows (PR #216584)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 17:22:05 PDT 2026


================
@@ -19,15 +19,15 @@
 
 #if SANITIZER_LIBBACKTRACE
 # include "backtrace-supported.h"
-# if SANITIZER_POSIX && BACKTRACE_SUPPORTED && !BACKTRACE_USES_MALLOC
-#  include "backtrace.h"
-#  if SANITIZER_CP_DEMANGLE
-#   undef ARRAY_SIZE
-#   include "demangle.h"
+#  if BACKTRACE_SUPPORTED && !BACKTRACE_USES_MALLOC
----------------
thurstond wrote:

Removing `SANITIZER_POSIX`  from the condition potentially opens a wider can of worms than merely enabling Windows support.

https://github.com/llvm/llvm-project/pull/216584


More information about the llvm-commits mailing list