================
@@ -327,6 +327,21 @@ void CommandMangler::operator()(tooling::CompileCommand 
&Command,
     return Elem.starts_with("--save-temps") || Elem.starts_with("-save-temps");
   });
 
+  llvm::erase_if(Cmd, [](llvm::StringRef FModuleTs) {
+    return FModuleTs == "-fmodules-ts";
+  });
+
+  llvm::erase_if(Cmd, [](llvm::StringRef MnoDirectExternalAccess) {
+    return MnoDirectExternalAccess == "-mno-direct-extern-access";
+  });
+
+  llvm::erase_if(Cmd, [](llvm::StringRef FDepFormat) {
+    return FDepFormat.starts_with("-fdeps-format");
----------------
mathstuf wrote:

Probably want the trailing `=` here like `-fmodule-mapper=`.

Also, there are `-fdeps-output=` and `-fdeps-target=` flags. However, IIUC, 
`clang` intends to move scanning into the frontend and the plan AFAIK is to use 
the same `-fdeps-*` flags as GCC, so these removals should be removed once 
they're understood again.

Cc: @Bigcheese (not sure who else is working on that)

https://github.com/llvm/llvm-project/pull/200001
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to