Skip to content

Commit

Permalink
wscript: disable using system-wide libbacktrace, as it might not supp…
Browse files Browse the repository at this point in the history
…ort features we need
  • Loading branch information
a1batross committed Feb 13, 2025
1 parent 0dd5a60 commit 2d8f747
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ SUBDIRS = [
Subproject('filesystem'),
Subproject('stub/server'),
Subproject('dllemu'),
Subproject('3rdparty/libbacktrace', lambda x: not x.env.HAVE_SYSTEM_LIBBACKTRACE),
Subproject('3rdparty/libbacktrace'),

# disable only by engine feature, makes no sense to even parse subprojects in dedicated mode
Subproject('3rdparty/extras', lambda x: x.env.CLIENT and x.env.DEST_OS != 'android'),
Expand Down Expand Up @@ -485,14 +485,8 @@ def configure(conf):
conf.env.SHAREDIR = conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX

if not conf.options.BUILD_BUNDLED_DEPS:
frag='''#include <backtrace.h>
#include <backtrace-supported.h>
#if !BACKTRACE_SUPPORTS_THREADS
#error
#endif
int main(int argc, char **argv) { return backtrace_create_state(argv[0], 1, 0, 0) != 0; }'''

conf.env.HAVE_SYSTEM_LIBBACKTRACE = conf.check_cc(lib='backtrace', fragment=frag, uselib_store='backtrace', mandatory=False)
# there was a check for system libbacktrace but we can't be sure if it supports fileline or not
# therefore, always build libbacktrace ourselves

if conf.env.CLIENT:
for i in ('ogg','opusfile','vorbis','vorbisfile'):
Expand Down

0 comments on commit 2d8f747

Please # to comment.