1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/testing/gzdoom/no-execinfo.patch

53 lines
1.4 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bea8c1c..b697fc3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -354,7 +354,7 @@ if( HAVE_VM_JIT AND UNIX )
if( HAVE_LIBEXECINFO )
set( ALL_C_FLAGS "${ALL_C_FLAGS} -lexecinfo" )
else( HAVE_LIBEXECINFO )
- set( HAVE_VM_JIT NO )
+ # set( HAVE_VM_JIT NO )
endif( HAVE_LIBEXECINFO )
set( CMAKE_REQUIRED_FLAGS )
endif( NOT HAVE_BACKTRACE )
diff --git a/src/common/scripting/jit/jit_runtime.cpp b/src/common/scripting/jit/jit_runtime.cpp
index 89672b9..bcb64e8 100644
--- a/src/common/scripting/jit/jit_runtime.cpp
+++ b/src/common/scripting/jit/jit_runtime.cpp
@@ -7,7 +7,6 @@
#include <DbgHelp.h>
#include <psapi.h>
#else
-#include <execinfo.h>
#include <cxxabi.h>
#include <cstring>
#include <cstdlib>
@@ -806,7 +805,7 @@ static int CaptureStackTrace(int max_frames, void **out_frames)
// JIT isn't supported here, so just do nothing.
return 0;//return RtlCaptureStackBackTrace(0, min(max_frames, 32), out_frames, nullptr);
#else
- return backtrace(out_frames, max_frames);
+ return 0;
#endif
}
@@ -868,7 +867,9 @@ class NativeSymbolResolver
public:
FString GetName(void *frame)
{
- FString s;
+ FString s = "no backtrace";
+ return s;
+ #if 0
char **strings;
void *frames[1] = { frame };
strings = backtrace_symbols(frames, 1);
@@ -925,6 +926,7 @@ public:
free(strings);
return s;
+ #endif
}
};
#endif