summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-25 05:11:40 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-25 05:11:40 +0000
commitd791d4ea3c254a0112c1c67c7fd5054a39efa76b (patch)
treea739231baee797163be56dbdec6a0362a7d0daec /libcxx/utils
parent3ca9185073ef365ac7e4e027af4c939bc27cacc3 (diff)
downloadbcm5719-llvm-d791d4ea3c254a0112c1c67c7fd5054a39efa76b.tar.gz
bcm5719-llvm-d791d4ea3c254a0112c1c67c7fd5054a39efa76b.zip
Disable the coroutines tests until Clang bumps __cpp_coroutines to reflect recent changes
llvm-svn: 303837
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 2b89a1cd23a..1bf2677a850 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -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']
OpenPOWER on IntegriCloud