================
@@ -1320,7 +1320,18 @@ void Flang::ConstructJob(Compilation &C, const JobAction 
&JA,
       Input.getInputArg().renderAsInput(Args, CmdArgs);
   }
 
-  const char *Exec = Args.MakeArgString(D.GetProgramPath("flang", TC));
+  // Handle "clang --driver-mode=flang" case
+  bool isClangDriverWithFlangMode = false;
+  if (D.Name.find("clang") != std::string_view::npos) {
----------------
tarunprabhu wrote:

I don't have a use case for `flang --driver-mode=*`. I was just trying to 
understand the expected behavior would be here. With this change, will `clang 
--driver-mode=flang ...` correctly compile Fortran code? If it does, it would 
be strange too :-)

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

Reply via email to