diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-28 12:41:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-28 16:07:02 +0300 |
commit | ab9f63449f38a2ee7fe98d2644b303beaa499773 (patch) | |
tree | e3a424654fb52a198fa450e2f55f548b24d0534f /bpkg/buildfile | |
parent | 31e8d1a676bb6f41bda08b207b0482ec057dbe45 (diff) |
Print backtrace to stderr when terminating due to unhandled exception
Diffstat (limited to 'bpkg/buildfile')
-rw-r--r-- | bpkg/buildfile | 5 |
1 files changed, 5 insertions, 0 deletions
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 |