meson: fix broken commit that broke the build

In commit 031de3c69c some code was added
that returned a boolean, but was treated as if it returned a dependency
object. This wasn't tested and could not work. Moreover, zstd no longer
built at all unless the entire programs directory was disabled and not
even evaluated.

Fix the return type checking.
This commit is contained in:
Eli Schwartz
2022-12-15 20:08:28 -05:00
parent 26e8c65aab
commit e8401e9e8d
+2 -2
View File
@@ -51,8 +51,8 @@ endif
export_dynamic_on_windows = false
# explicit backtrace enable/disable for Linux & Darwin
execinfo = cc.has_header('execinfo.h', required: use_backtrace)
if not execinfo.found()
have_execinfo = cc.has_header('execinfo.h', required: use_backtrace)
if not have_execinfo
zstd_c_args += '-DBACKTRACE_ENABLE=0'
elif use_debug and host_machine_os == os_windows # MinGW target
zstd_c_args += '-DBACKTRACE_ENABLE=1'