[libcxx] r303837 - Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect recent changes
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed May 24 22:11:40 PDT 2017
Author: ericwf
Date: Thu May 25 00:11:40 2017
New Revision: 303837
URL: http://llvm.org/viewvc/llvm-project?rev=303837&view=rev
Log:
Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect recent changes
Modified:
libcxx/trunk/utils/libcxx/test/config.py
Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=303837&r1=303836&r2=303837&view=diff
==============================================================================
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Thu May 25 00:11:40 2017
@@ -957,7 +957,15 @@ class Configuration(object):
def configure_coroutines(self):
if self.cxx.hasCompileFlag('-fcoroutines-ts'):
- self.config.available_features.add('fcoroutines-ts')
+ macros = self.cxx.dumpMacros(flags=['-fcoroutines-ts'])
+ if '__cpp_coroutines' not in macros:
+ self.lit_config.warning('-fcoroutines-ts is supported but '
+ '__cpp_coroutines is not defined')
+ # Consider coroutines supported only when the feature test macro
+ # reflects a recent value.
+ val = macros['__cpp_coroutines'].replace('L', '')
+ if int(val) >= 201703:
+ self.config.available_features.add('fcoroutines-ts')
def configure_modules(self):
modules_flags = ['-fmodules']
More information about the cfe-commits
mailing list