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
|
# 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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -71,8 +71,7 @@ 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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user