Mark test as unsupported without threads

llvm-svn: 284217
This commit is contained in:
Eric Fiselier 2016-10-14 09:12:53 +00:00
parent 9a7c3e56fd
commit ccc6502abc
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class Configuration(LibcxxConfiguration):
self.cxx.compile_flags += ['-fno-exceptions', '-DLIBCXXABI_HAS_NO_EXCEPTIONS']
if not self.get_lit_bool('enable_threads', True):
self.cxx.compile_flags += ['-D_LIBCXXABI_HAS_NO_THREADS']
self.config.available_features.add('libcxxabi-no-threads')
super(Configuration, self).configure_compile_flags()
def configure_compile_flags_header_includes(self):

View File

@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03
// UNSUPPORTED: libcxxabi-no-threads
#include <cassert>
#include <thread>