mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: ensure system-wide libbacktrace supports threads
This commit is contained in:
5
wscript
5
wscript
@@ -487,7 +487,10 @@ def configure(conf):
|
||||
if not conf.options.BUILD_BUNDLED_DEPS:
|
||||
frag='''#include <backtrace.h>
|
||||
#include <backtrace-supported.h>
|
||||
int main(int argc, char **argv) { return backtrace_create_state( argv[0], BACKTRACE_SUPPORTS_THREADS, 0, 0 ) != 0; }'''
|
||||
#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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user