Skip to content

Commit b7a08fd

Browse files
authored
Build: Only include execinfo.h on linux systems that support it (#8783)
* Only enable backtrace on GLIBC linux systems * fix missing file from copy * use glibc macro instead of defining a custom one
1 parent 7a11eb3 commit b7a08fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static void ggml_print_backtrace_symbols(void) {
185185
fprintf(stderr, "%d: %p %s\n", idx, addr, symbol);
186186
}
187187
}
188-
#elif defined(__linux__)
188+
#elif defined(__linux__) && defined(__GLIBC__)
189189
#include <execinfo.h>
190190
static void ggml_print_backtrace_symbols(void) {
191191
void * trace[100];

0 commit comments

Comments
 (0)