You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libbacktrace was enabled for Windows/MSVC through a custom CMake path,
but that path diverged from upstream configure.ac assumptions and broke
Windows builds after the b9e4006 update.
Fix the Windows build wiring to match upstream behavior:
- select unwind backend by compiler:
- backtrace.c for toolchains with _Unwind_* support
- nounwind.c for MSVC cl.exe
- generate a local unistd.h compatibility shim in
libbacktrace_config for MSVC (open/read/close/lseek/getpid)
- correct generated backtrace-supported.h values on Windows:
- set BACKTRACE_SUPPORTED from selected unwind backend
- set BACKTRACE_SUPPORTS_THREADS=0 for MSVC config
- set BACKTRACE_SUPPORTS_DATA=0 for PE/COFF
This keeps libbacktrace enabled on Windows while fixing the MSVC
build failure and aligning metadata/macros with upstream semantics.
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
0 commit comments