From 62c01cbb044c07350d493c5900b2325e5e46aaf4 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 17 Mar 2016 10:00:24 +0000 Subject: [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 --- test/libcxxabi/test/config.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/libcxxabi') 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'] -- cgit v1.2.3