Skip to content

Commit

Permalink
Merge pull request #3368 from eli-schwartz/meson-execinfo-bool
Browse files Browse the repository at this point in the history
meson: fix broken commit that broke the build
  • Loading branch information
yoniko committed Dec 16, 2022
2 parents ee6475c + 626425d commit 8745229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/meson/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ project('zstd',
version: run_command(
find_program('GetZstdLibraryVersion.py'), '../../lib/zstd.h',
check: true).stdout().strip(),
meson_version: '>=0.48.0')
meson_version: '>=0.50.0')

cc = meson.get_compiler('c')
cxx = meson.get_compiler('cpp')
Expand Down
4 changes: 2 additions & 2 deletions build/meson/programs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8745229

Please sign in to comment.