summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-25 04:36:24 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-25 04:36:24 +0000
commit3ca9185073ef365ac7e4e027af4c939bc27cacc3 (patch)
treea2d2765b8dd94bcac228a973e1bcdcb3d7abd509 /libcxx/utils
parentc81c8cbe77b4f6b420e059307180c72fca0b9c98 (diff)
downloadbcm5719-llvm-3ca9185073ef365ac7e4e027af4c939bc27cacc3.tar.gz
bcm5719-llvm-3ca9185073ef365ac7e4e027af4c939bc27cacc3.zip
Add <experimental/coroutine>
This patch adds the library portions of the coroutines PDTS, which should now be supported by Clang. llvm-svn: 303836
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 2118f9c7eb9..2b89a1cd23a 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -142,6 +142,7 @@ class Configuration(object):
self.configure_sanitizer()
self.configure_coverage()
self.configure_modules()
+ self.configure_coroutines()
self.configure_substitutions()
self.configure_features()
@@ -954,6 +955,10 @@ class Configuration(object):
self.cxx.flags += ['-g', '--coverage']
self.cxx.compile_flags += ['-O0']
+ def configure_coroutines(self):
+ if self.cxx.hasCompileFlag('-fcoroutines-ts'):
+ self.config.available_features.add('fcoroutines-ts')
+
def configure_modules(self):
modules_flags = ['-fmodules']
if platform.system() != 'Darwin':
OpenPOWER on IntegriCloud