[llvm-branch-commits] [clang] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--fmodule-output` (PR #121046)
Carlo Cabrera via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 24 05:17:50 PST 2024
================
@@ -5890,7 +5890,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
llvm::PrettyStackTraceString CrashInfo("Computing output path");
// Output to a user requested destination?
if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
- if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o))
+ if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o, options::OPT__SLASH_Fo, options::OPT__SLASH_Fo_COLON))
----------------
carlocab wrote:
We should probably gate checking the cl-style flags behind `isCLMode`.
https://github.com/llvm/llvm-project/pull/121046
More information about the llvm-branch-commits
mailing list