Skip to content

Commit 9d190c2

Browse files
committedMay 9, 2017
[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. llvm-svn: 302562
1 parent ad11bf5 commit 9d190c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎compiler-rt/test/ubsan/lit.common.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ else:
3838
lit_config.fatal("Unknown UBSan test mode: %r" % ubsan_lit_test_mode)
3939

4040
# Platform-specific default for lit tests.
41+
if config.target_arch == 's390x':
42+
# On SystemZ we need -mbackchain to make the fast unwinder work.
43+
clang_ubsan_cflags.append("-mbackchain")
4144
if config.host_os == 'Darwin':
4245
# On Darwin, we default to `abort_on_error=1`, which would make tests run
4346
# much slower. Let's override this and run lit tests with 'abort_on_error=0'.

0 commit comments

Comments
 (0)