Sfoglia il codice sorgente

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
Alex O'Connell 1 anno fa
parent
commit
b7a08fd5e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ggml/src/ggml.c

+ 1 - 1
ggml/src/ggml.c

@@ -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];