From ab9f63449f38a2ee7fe98d2644b303beaa499773 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 May 2019 12:41:31 +0300 Subject: Print backtrace to stderr when terminating due to unhandled exception --- bpkg/buildfile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/buildfile') diff --git a/bpkg/buildfile b/bpkg/buildfile index 518b25b..adb6d3b 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -94,6 +94,11 @@ if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 10) obj{utility}: cxx.poptions += -DBPKG_EXE_SUFFIX='"'$bin.exe.suffix'"' +# Make sure backtrace includes function names. +# +if ($cxx.target.class == 'linux') + cxx.loptions += -rdynamic + # Generated options parser. # if $cli.configured -- cgit v1.1