summaryrefslogtreecommitdiff
path: root/test/ubsan
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2017-05-09 18:07:50 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2017-05-09 18:07:50 +0000
commit6e815d2efad5e8aba85a165dfdedb871a473d283 (patch)
tree72f0075afbf0f94f3e6dd6b16dd22b2e5fd0acfb /test/ubsan
parent91b57908e70bac0b29affae914f9da49d60d0e37 (diff)
[SystemZ] Fix failures after D32542
This commit made ubsan use the fast unwinder. On SystemZ this requires test cases to be compiled with -mbackchain. That was already done for asan, but not ubsan. Add the flag for ubsan as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r--test/ubsan/lit.common.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ubsan/lit.common.cfg b/test/ubsan/lit.common.cfg
index cd6d209ee..cb6a8e442 100644
--- a/test/ubsan/lit.common.cfg
+++ b/test/ubsan/lit.common.cfg
@@ -38,6 +38,9 @@ else:
lit_config.fatal("Unknown UBSan test mode: %r" % ubsan_lit_test_mode)
# Platform-specific default for lit tests.
+if config.target_arch == 's390x':
+ # On SystemZ we need -mbackchain to make the fast unwinder work.
+ clang_ubsan_cflags.append("-mbackchain")
if config.host_os == 'Darwin':
# On Darwin, we default to `abort_on_error=1`, which would make tests run
# much slower. Let's override this and run lit tests with 'abort_on_error=0'.