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
# define TRACY_HAS_CALLSTACK 6
# elif defined __HAIKU__
# define TRACY_HAS_CALLSTACK 5
# define TRACY_HAS_CALLSTACK 2
# endif
#endif

View File

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

View File

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

View File

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