1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use callstack method 2 on Haiku

This commit is contained in:
Jorge Acereda 2024-02-27 23:40:56 +01:00
parent 9189b4293d
commit fbe6bac723
4 changed files with 10 additions and 5 deletions

View File

@ -29,7 +29,7 @@
# elif defined BSD # elif defined BSD
# define TRACY_HAS_CALLSTACK 6 # define TRACY_HAS_CALLSTACK 6
# elif defined __HAIKU__ # elif defined __HAIKU__
# define TRACY_HAS_CALLSTACK 5 # define TRACY_HAS_CALLSTACK 2
# endif # endif
#endif #endif

View File

@ -3,6 +3,12 @@
// include __WORDSIZE headers for musl // include __WORDSIZE headers for musl
# include <bits/reg.h> # include <bits/reg.h>
#endif #endif
#ifdef __HAIKU__
# include <config/HaikuConfig.h>
# define __WORDSIZE __HAIKU_ARCH_BITS
#endif
#if __WORDSIZE == 64 #if __WORDSIZE == 64
# define BACKTRACE_ELF_SIZE 64 # define BACKTRACE_ELF_SIZE 64
#else #else

View File

@ -71,9 +71,8 @@ POSSIBILITY OF SUCH DAMAGE. */
#endif #endif
#endif #endif
#if defined __HAIKU__ #ifdef __HAIKU__
#undef HAVE_DL_ITERATE_PHDR # define ElfW(x) Elf_##x
#define ElfW(x) Elf_##x
#endif #endif
namespace tracy namespace tracy

View File

@ -5,7 +5,7 @@ DEFINES +=
INCLUDES := -I../public/tracy INCLUDES := -I../public/tracy
LIBS := -lpthread LIBS := -lpthread
ifeq ($(shell uname -o),Haiku) ifeq ($(shell uname -o),Haiku)
LIBS += -lroot -lnetwork LIBS += -lroot -lnetwork -lbsd
else else
LIBS += -ldl LIBS += -ldl
endif endif