[clang] [clang-cl] Don't count linker inputs against /Fo and /Fa (PR #232611)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 04:08:35 PDT 2026


================
@@ -3386,10 +3386,15 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args,
                              const InputList &Inputs,
                              ActionList &Actions) const {
 
+  // Linker inputs go straight to the linker, so they should not be counted
+  // toward the compiler outputs that /Fo and /Fa name.
+  unsigned NumCompiledInputs = llvm::count_if(
----------------
zmodem wrote:

Most invocations don't use /Fo or /Fa. Can we avoid running this loop in such cases?

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


More information about the cfe-commits mailing list