From 1598698fcd6fefc3346792065fa6d88d9c9c93cf Mon Sep 17 00:00:00 2001 From: Marcin Koscielnicki Date: Thu, 12 May 2016 08:49:34 +0000 Subject: [PATCH] [ASan] [SystemZ] Add -mbackchain to test cflags. This is needed for proper operation of the fast unwinder, see the discussion on D18895. Differential Revision: http://reviews.llvm.org/D19898 llvm-svn: 269277 --- compiler-rt/test/asan/lit.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/asan/lit.cfg b/compiler-rt/test/asan/lit.cfg index c50559a51018..894c3f859fbd 100644 --- a/compiler-rt/test/asan/lit.cfg +++ b/compiler-rt/test/asan/lit.cfg @@ -73,6 +73,8 @@ clang_asan_static_cflags = (["-fsanitize=address", "-fno-omit-frame-pointer", "-fno-optimize-sibling-calls"] + config.debug_info_flags + target_cflags) +if config.target_arch == 's390x': + clang_asan_static_cflags.append("-mbackchain") clang_asan_static_cxxflags = config.cxx_mode_flags + clang_asan_static_cflags if config.asan_dynamic: