[clang] [Clang][Driver] report unsupported option error when link + compile in same process (PR #116476)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 29 12:09:28 PST 2024


================
@@ -4129,10 +4130,8 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args,
     }
   }
 
-  // If we are linking, claim any options which are obviously only used for
-  // compilation.
-  // FIXME: Understand why the last Phase List length is used here.
-  if (FinalPhase == phases::Link && LastPLSize == 1) {
+  // claim any options which are obviously only used for compilation.
----------------
MaskRay wrote:

Capitalize this diagnostic

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


More information about the cfe-commits mailing list