NEW300735
[CMake] Adds checks for execinfo.h and backtrace[_symbols]
https://bugs.webkit.org/show_bug.cgi?id=300735
Summary [CMake] Adds checks for execinfo.h and backtrace[_symbols]
Adrian Perez
Reported 2025-10-14 15:35:21 PDT
Instead of relying on a set of preprocessor checks to determine whether the execinfo.h header and the backtrace/backtrace_symbols functions are available, it would be better to detect this with CMake. The plan would be to: - Check whether <execinfo.h> is present. - Check whether the backtrace() function can be linked, either from libc, or from libexecinfo (some systems provide it there) - Define PAS_HAVE_BACKTRACE and HAVE_BACKTRACE accordingly. - Change the guards in libpas and WTF to PAS_HAVE(BACKTRACE) and HAVE(BACKTRACE) accordingly.
Attachments
Alexsander Borges Damaceno
Comment 1 2025-11-04 17:42:50 PST
Note You need to log in before you can comment on or make changes to this bug.