summaryrefslogtreecommitdiff
path: root/test/asan/lit.cfg
diff options
context:
space:
mode:
authorMaxim Ostapenko <chefmax7@gmail.com>2017-04-11 14:58:26 +0000
committerMaxim Ostapenko <chefmax7@gmail.com>2017-04-11 14:58:26 +0000
commit8d8e5f3b6c3f6c74c0ddcdbdd169ffe3fefadfe3 (patch)
tree1d7b57f83768f06bbdc6cfcf5833b16fc4ede564 /test/asan/lit.cfg
parent056881d0b45d6148ab00fa12cb58cd75e4f64e48 (diff)
Reapply "Enable LSan for arm Linux"
This patch reapplies r299923 with typo fixed in BLX macros. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/lit.cfg')
-rw-r--r--test/asan/lit.cfg5
1 files changed, 5 insertions, 0 deletions
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')