Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

libcxathrow: Fix build on Musl #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Update API level to Oct. 16 2024
- Fix adding newline at the end for formatting
- Fixed types of cmake_subprojectoptions::append_link_args
- Fixed compilation under Musl

# 4.3.4 (Sep 01 2024)
- Fix crash if first statement of root meson.build is not a function call (#135)
Expand Down
6 changes: 5 additions & 1 deletion src/libcxathrow/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ if cxx.get_id() == 'gcc'
src_files += 'backtrace_stacktrace.cpp'
cxathrow_deps += backtrace_dep
else
if is_static or host_machine.system() == 'windows'
if not cxx.has_header('execinfo.h')
# Musl libc doesn't have execinfo.h
src_files += null_backtrace
used_libunwind = libunwind_dep.found()
elif is_static or host_machine.system() == 'windows'
# Should only happen in crappy distributions....
src_files += null_backtrace
used_libunwind = true
Expand Down
Loading