fix: stub out FreeRDP unwind/debug.c with empty implementations instead of deleting
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 36s

This commit is contained in:
Vantz Stockwell 2026-03-17 09:40:24 -04:00
parent ad4f23dc1a
commit 855ee71e18

View File

@ -140,9 +140,14 @@ jobs:
export CFLAGS="-w"
export CXXFLAGS="-w"
# Remove unwind source — uses dlfcn.h which doesn't exist in MinGW
rm -rf winpr/libwinpr/utils/unwind
sed -i '/unwind/d' winpr/libwinpr/CMakeLists.txt 2>/dev/null || true
# Stub out unwind source — uses dlfcn.h which doesn't exist in MinGW
# Replace with empty implementations so cmake still finds the file
cat > winpr/libwinpr/utils/unwind/debug.c << 'STUBEOF'
#include <winpr/wtypes.h>
void* winpr_unwind_backtrace(void) { return NULL; }
char** winpr_unwind_backtrace_symbols(void* buffer, size_t* used) { *used = 0; return NULL; }
void winpr_unwind_backtrace_free(void* buffer) { }
STUBEOF
cmake -B build -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \