From 77094f117908a9b2f3b2cb4ebe5dbf6c744a851d Mon Sep 17 00:00:00 2001 From: Maxim Ostapenko Date: Tue, 11 Apr 2017 08:13:38 +0000 Subject: [lsan] Enable LSan for arm Linux This patch enables LSan for arm Linux. Differential Revision: https://reviews.llvm.org/D29586 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299923 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/asan/lit.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/asan/lit.cfg') diff --git a/test/asan/lit.cfg b/test/asan/lit.cfg index 37ba10df6..9093b44c1 100644 --- a/test/asan/lit.cfg +++ b/test/asan/lit.cfg @@ -2,6 +2,7 @@ import os import platform +import re import lit.formats @@ -211,6 +212,10 @@ config.substitutions.append( ("%xdynamiclib_namespec", '%basename_t.dynamic') ) if config.target_arch != 'arm' and config.target_arch != 'armhf' and config.target_arch != 'aarch64': config.available_features.add('stable-runtime') +# Fast unwinder doesn't work with Thumb +if not re.match('-mthumb', config.target_cflags): + config.available_features.add('fast-unwinder-works') + # Turn on leak detection on 64-bit Linux. if config.host_os == 'Linux' and (config.target_arch == 'x86_64' or config.target_arch == 'i386'): config.available_features.add('leak-detection') -- cgit v1.2.3