[clang] [Clang] No longer advertise support for coroutines on x86 windows. (PR #193456)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 22 04:04:00 PDT 2026


================
@@ -714,7 +715,12 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
     Builder.defineMacro("__cpp_consteval", "202211L");
     Builder.defineMacro("__cpp_constexpr_dynamic_alloc", "201907L");
     Builder.defineMacro("__cpp_constinit", "201907L");
-    Builder.defineMacro("__cpp_impl_coroutine", "201902L");
+
+    // Support for coroutines on 32 bits x86 Microsoft platforms is
+    // incomplete, do not advertise it.
+    if (!(TI.getCXXABI().isMicrosoft() && TI.getTriple().isX86_32()))
----------------
AaronBallman wrote:

If there are other targets where coroutines support is in a similarly bad shape, we should make this a function on `TargetInfo`. Have you looked through the bug database to see if there are other targets in bad shape? (I'm not aware of any, so there's likely nothing to do here, just double-checking.)

https://github.com/llvm/llvm-project/pull/193456


More information about the cfe-commits mailing list