Spaces:
Running
Running
Alex O'Connell
commited on
Commit
·
0019ddb
1
Parent(s):
73e80d1
Build: Only include execinfo.h on linux systems that support it (llama/8783)
Browse files* Only enable backtrace on GLIBC linux systems
* fix missing file from copy
* use glibc macro instead of defining a custom one
- ggml/src/ggml.c +1 -1
ggml/src/ggml.c
CHANGED
|
@@ -188,7 +188,7 @@ static void ggml_print_backtrace_symbols(void) {
|
|
| 188 |
fprintf(stderr, "%d: %p %s\n", idx, addr, symbol);
|
| 189 |
}
|
| 190 |
}
|
| 191 |
-
#elif defined(__linux__)
|
| 192 |
#include <execinfo.h>
|
| 193 |
static void ggml_print_backtrace_symbols(void) {
|
| 194 |
void * trace[100];
|
|
|
|
| 188 |
fprintf(stderr, "%d: %p %s\n", idx, addr, symbol);
|
| 189 |
}
|
| 190 |
}
|
| 191 |
+
#elif defined(__linux__) && defined(__GLIBC__)
|
| 192 |
#include <execinfo.h>
|
| 193 |
static void ggml_print_backtrace_symbols(void) {
|
| 194 |
void * trace[100];
|