================
@@ -4402,8 +4403,12 @@ clang_parseTranslationUnit_Impl(CXIndex CIdx, const char 
*source_filename,
   Args->insert(Args->end(), command_line_args,
                command_line_args + num_command_line_args);
 
+  // Use the driver pass-through spelling for options not accepted by clang-cl.
+  bool IsCLMode = driver::IsClangCL(
----------------
cerisier wrote:

I initially wanted to suggest that but I wasn't sure this would be an 
acceptable solution. From my understanding clang cl tried to stick as much as 
possible to cl dialect and all those other flags started appearing with -flto;

I'll follow your guidance.

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

Reply via email to