[PATCH] D121141: [Clang] Add `-funstable` flag to enable unstable and experimental features: follow-up fixes

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 10:36:12 PDT 2022


MaskRay added a subscriber: urnathan.
MaskRay added a comment.

LGTM.

It may be related, @urnathan wants to add `-std=c++{current,future}` to GCC and may have opinions on the option name.



================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:5840
 
-  if (Args.hasArg(options::OPT_funstable)) {
-    CmdArgs.push_back("-funstable");
-    if (!Args.hasArg(options::OPT_fno_coroutines_ts))
-      CmdArgs.push_back("-fcoroutines-ts");
-    CmdArgs.push_back("-fmodules-ts");
-  }
+  if (Args.hasArg(options::OPT_fexperimental_library))
+    CmdArgs.push_back("-fexperimental-library");
----------------
Use Args.AddLastArg


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121141/new/

https://reviews.llvm.org/D121141



More information about the cfe-commits mailing list