aboutsummaryrefslogtreecommitdiff
path: root/tests/backtrace/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/backtrace/buildfile')
-rw-r--r--tests/backtrace/buildfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/backtrace/buildfile b/tests/backtrace/buildfile
new file mode 100644
index 0000000..a4120df
--- /dev/null
+++ b/tests/backtrace/buildfile
@@ -0,0 +1,12 @@
+# file : tests/backtrace/buildfile
+# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+import libs = libbutl%lib{butl}
+
+exe{driver}: {hxx cxx}{*} $libs testscript
+
+# Make sure backtrace() includes function names.
+#
+if ($cxx.target.class == 'linux')
+ cxx.loptions += -rdynamic