Skip to content

Commit

Permalink
Build: Only include execinfo.h on linux systems that support it (#8783)
Browse files Browse the repository at this point in the history
* Only enable backtrace on GLIBC linux systems

* fix missing file from copy

* use glibc macro instead of defining a custom one
  • Loading branch information
acon96 authored Aug 1, 2024
1 parent 7a11eb3 commit b7a08fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static void ggml_print_backtrace_symbols(void) {
fprintf(stderr, "%d: %p %s\n", idx, addr, symbol);
}
}
#elif defined(__linux__)
#elif defined(__linux__) && defined(__GLIBC__)
#include <execinfo.h>
static void ggml_print_backtrace_symbols(void) {
void * trace[100];
Expand Down

0 comments on commit b7a08fd

Please sign in to comment.