aboutsummaryrefslogtreecommitdiffstats
path: root/test/std/experimental/language.support/support.coroutines/lit.local.cfg
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-30 17:37:59 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-30 17:37:59 +0000
commit10a0bef720b6882fce588a10b07b0584d62eac76 (patch)
treefb169e84a36c81d64e9d07fac8e8331ec8fc4989 /test/std/experimental/language.support/support.coroutines/lit.local.cfg
parentb276b1db48faa7328575ab722fe3bc340623f025 (diff)
downloadsrc-10a0bef720b6882fce588a10b07b0584d62eac76.tar.gz
src-10a0bef720b6882fce588a10b07b0584d62eac76.zip
Vendor import of libc++ trunk r304222:vendor/libc++/libc++-trunk-r304222
Notes
Notes: svn path=/vendor/libc++/dist/; revision=319236 svn path=/vendor/libc++/libc++-trunk-r304222/; revision=319237; tag=vendor/libc++/libc++-trunk-r304222
Diffstat (limited to 'test/std/experimental/language.support/support.coroutines/lit.local.cfg')
-rw-r--r--test/std/experimental/language.support/support.coroutines/lit.local.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/std/experimental/language.support/support.coroutines/lit.local.cfg b/test/std/experimental/language.support/support.coroutines/lit.local.cfg
new file mode 100644
index 000000000000..a0b3de8afaa3
--- /dev/null
+++ b/test/std/experimental/language.support/support.coroutines/lit.local.cfg
@@ -0,0 +1,9 @@
+# If the compiler doesn't support coroutines mark all of the tests under
+# this directory as unsupported. Otherwise add the required `-fcoroutines-ts`
+# flag.
+if 'fcoroutines-ts' not in config.available_features:
+ config.unsupported = True
+else:
+ import copy
+ config.test_format.cxx = copy.deepcopy(config.test_format.cxx)
+ config.test_format.cxx.compile_flags += ['-fcoroutines-ts']