Enable testing C++ coroutines TS.

Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: I620c999b6c156129257d3937b0893f45a6d3fddd
This commit is contained in:
Dan Albert
2019-02-28 15:11:47 -08:00
parent 0680af7288
commit fd86c1f3ed
2 changed files with 2 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ cc_binary {
cppflags: [ cppflags: [
"-fsized-deallocation", "-fsized-deallocation",
"-fexceptions", "-fexceptions",
"-fcoroutines-ts",
"-Wno-format-zero-length", "-Wno-format-zero-length",
"-Wno-implicit-fallthrough", "-Wno-implicit-fallthrough",
"-Wno-non-virtual-dtor", "-Wno-non-virtual-dtor",

View File

@@ -107,6 +107,7 @@ class Configuration(libcxx.test.config.Configuration):
self.config.available_features.add('c++experimental') self.config.available_features.add('c++experimental')
self.config.available_features.add('c++fs') self.config.available_features.add('c++fs')
self.config.available_features.add('c++filesystem') self.config.available_features.add('c++filesystem')
self.config.available_features.add('fcoroutines-ts')
std_pattern = re.compile(r'-std=(c\+\+\d[0-9x-z])') std_pattern = re.compile(r'-std=(c\+\+\d[0-9x-z])')
match = std_pattern.search(self.cxx.cxx_template) match = std_pattern.search(self.cxx.cxx_template)
if match: if match: