mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -185,7 +185,7 @@ static void ggml_print_backtrace_symbols(void) { | |||||||
|         fprintf(stderr, "%d: %p %s\n", idx, addr, symbol); |         fprintf(stderr, "%d: %p %s\n", idx, addr, symbol); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| #elif defined(__linux__) | #elif defined(__linux__) && defined(__GLIBC__) | ||||||
| #include <execinfo.h> | #include <execinfo.h> | ||||||
| static void ggml_print_backtrace_symbols(void) { | static void ggml_print_backtrace_symbols(void) { | ||||||
|     void * trace[100]; |     void * trace[100]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alex O'Connell
					Alex O'Connell