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:
parent
9189b4293d
commit
fbe6bac723
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user