Skip to content
Snippets Groups Projects
Commit 37a1cf75 authored by Eric Fiselier's avatar Eric Fiselier
Browse files

[coroutines] Bump __cpp_coroutines version

Summary: This patch is needed so that Libc++ can actually tess if Clang supports coroutines, instead of just paying lip service with a partial implementation. Otherwise the libc++ test suite will fail against older versions of Clang

Reviewers: GorNishanov, rsmith

Reviewed By: GorNishanov

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D33536

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303867 91177308-0d34-0410-b5e6-96231b3b80d8
parent 40ed16ee
No related branches found
No related tags found
No related merge requests found
...@@ -535,7 +535,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, ...@@ -535,7 +535,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
if (LangOpts.ConceptsTS) if (LangOpts.ConceptsTS)
Builder.defineMacro("__cpp_experimental_concepts", "1"); Builder.defineMacro("__cpp_experimental_concepts", "1");
if (LangOpts.CoroutinesTS) if (LangOpts.CoroutinesTS)
Builder.defineMacro("__cpp_coroutines", "1"); Builder.defineMacro("__cpp_coroutines", "201703L");
} }
static void InitializePredefinedMacros(const TargetInfo &TI, static void InitializePredefinedMacros(const TargetInfo &TI,
......
...@@ -235,6 +235,6 @@ ...@@ -235,6 +235,6 @@
#error "wrong value for __cpp_experimental_concepts" #error "wrong value for __cpp_experimental_concepts"
#endif #endif
#if (COROUTINES && !__cpp_coroutines) || (!COROUTINES && __cpp_coroutines) #if defined(COROUTINES) ? check(coroutines, 201703L, 201703L, 201703L, 201703L) : check(coroutines, 0, 0, 0, 0)
#error "wrong value for __cpp_coroutines" #error "wrong value for __cpp_coroutines"
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment