[libc++] Fix failing concepts tests

This commit is contained in:
Eric Fiselier
2020-04-08 18:25:01 -04:00
parent 155740cc33
commit bf90b8fc25
2 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
// UNSUPPORTED: libcpp-no-concepts
// template<class T, class U>
// concept same_as;

View File

@@ -472,6 +472,10 @@ class Configuration(object):
intMacroValue(macros['__cpp_deduction_guides']) < 201611:
self.config.available_features.add('libcpp-no-deduction-guides')
if '__cpp_concepts' not in macros or \
intMacroValue(macros['__cpp_concepts']) < 201811:
self.config.available_features.add('libcpp-no-concepts')
if self.target_info.is_windows():
self.config.available_features.add('windows')
if self.cxx_stdlib_under_test == 'libc++':