Skip to content

Commit d26250f

Browse files
acon96ggerganov
authored andcommitted
Build: Only include execinfo.h on linux systems that support it (llama/8783)
* Only enable backtrace on GLIBC linux systems * fix missing file from copy * use glibc macro instead of defining a custom one
1 parent 5218ea2 commit d26250f

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
@@ -188,7 +188,7 @@ static void ggml_print_backtrace_symbols(void) {
188188
fprintf(stderr, "%d: %p %s\n", idx, addr, symbol);
189189
}
190190
}
191-
#elif defined(__linux__)
191+
#elif defined(__linux__) && defined(__GLIBC__)
192192
#include <execinfo.h>
193193
static void ggml_print_backtrace_symbols(void) {
194194
void * trace[100];

0 commit comments

Comments
 (0)