From af635957efca0dfcd79e7c297a69db36e4971e98 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 May 2019 12:09:42 +0300 Subject: Print backtrace to stderr when terminating due to unhandled exception --- build2/buildfile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/buildfile') diff --git a/build2/buildfile b/build2/buildfile index bf3f10b..ba8f25c 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -51,7 +51,14 @@ if ($cxx.target == $build.host) } if ($cxx.target.class != "windows") +{ + # Make sure backtrace includes function names. + # + if ($cxx.target.class == 'linux') + cxx.loptions += -rdynamic + cxx.libs += -lpthread +} else { # Adjust stack size (affects all threads). -- cgit v1.1