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
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 36s
This commit is contained in:
parent
ad4f23dc1a
commit
855ee71e18
@ -140,9 +140,14 @@ jobs:
|
|||||||
export CFLAGS="-w"
|
export CFLAGS="-w"
|
||||||
export CXXFLAGS="-w"
|
export CXXFLAGS="-w"
|
||||||
|
|
||||||
# Remove unwind source — uses dlfcn.h which doesn't exist in MinGW
|
# Stub out unwind source — uses dlfcn.h which doesn't exist in MinGW
|
||||||
rm -rf winpr/libwinpr/utils/unwind
|
# Replace with empty implementations so cmake still finds the file
|
||||||
sed -i '/unwind/d' winpr/libwinpr/CMakeLists.txt 2>/dev/null || true
|
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 \
|
cmake -B build -G Ninja \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user