meson: make backtrace dependency on execinfo

musl libc for example has no such header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2022-12-14 15:39:51 -08:00
committed by Nick Terrell
parent 72845ebad2
commit 031de3c69c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -51,7 +51,8 @@ endif
export_dynamic_on_windows = false
# explicit backtrace enable/disable for Linux & Darwin
if not use_backtrace
execinfo = cc.has_header('execinfo.h', required: use_backtrace)
if not execinfo.found()
zstd_c_args += '-DBACKTRACE_ENABLE=0'
elif use_debug and host_machine_os == os_windows # MinGW target
zstd_c_args += '-DBACKTRACE_ENABLE=1'