aboutsummaryrefslogtreecommitdiff
path: root/bdep/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-28 12:28:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-28 16:09:48 +0300
commit52f1e90df5a8c98c5dc9ae3d50f7c24928c7b69b (patch)
tree48e9dbb5b4c4f1fe40ce068ba4005d53cdb9833d /bdep/buildfile
parent1a9e93df517ebcfd836bd94b095c354a4877c96e (diff)
Print backtrace to stderr when terminating due to unhandled exception
Diffstat (limited to 'bdep/buildfile')
-rw-r--r--bdep/buildfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/bdep/buildfile b/bdep/buildfile
index db38734..702058c 100644
--- a/bdep/buildfile
+++ b/bdep/buildfile
@@ -89,6 +89,11 @@ if ($cxx.class == 'msvc')
elif ($cxx.class == 'gcc')
cxx.coptions += -Wno-unknown-pragmas
+# Make sure backtrace includes function names.
+#
+if ($cxx.target.class == 'linux')
+ cxx.loptions += -rdynamic
+
# Generated options parser.
#
if $cli.configured