summaryrefslogtreecommitdiff
path: root/test/libcxxabi
diff options
context:
space:
mode:
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2016-03-17 10:00:24 +0000
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>2016-03-17 10:00:24 +0000
commit62c01cbb044c07350d493c5900b2325e5e46aaf4 (patch)
tree9dd949c3b237e89adb76f34b0b5ebd38a6773e1a /test/libcxxabi
parenteca353d4849b2b1f7bca76edb40b3534433a5a26 (diff)
[libcxxabi] Disable cxa_thread_atexit_test if unavailable
The feature check is already in place when building the library but wasn't honored for the tests. Differential Revision: http://reviews.llvm.org/D18205 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@263699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/libcxxabi')
-rw-r--r--test/libcxxabi/test/config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libcxxabi/test/config.py b/test/libcxxabi/test/config.py
index 09918c1..c167de5 100644
--- a/test/libcxxabi/test/config.py
+++ b/test/libcxxabi/test/config.py
@@ -33,6 +33,11 @@ class Configuration(LibcxxConfiguration):
self.libcxxabi_obj_root = self.get_lit_conf('libcxxabi_obj_root')
super(Configuration, self).configure_obj_root()
+ def configure_features(self):
+ super(Configuration, self).configure_features()
+ if self.get_lit_bool('thread_atexit', True):
+ self.config.available_features.add('thread_atexit')
+
def configure_compile_flags(self):
self.cxx.compile_flags += ['-DLIBCXXABI_NO_TIMER']
self.cxx.compile_flags += ['-funwind-tables']