Skip to content

Commit 3a84b59

Browse files
committed
Accept /Fo and -Fo in -fmodule-output when running under CL mode
1 parent 4f4e2ab commit 3a84b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6099,7 +6099,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
60996099
llvm::PrettyStackTraceString CrashInfo("Computing output path");
61006100
// Output to a user requested destination?
61016101
if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
6102-
if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o))
6102+
if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o, options::OPT__SLASH_Fo, options::OPT__SLASH_Fo_COLON))
61036103
return C.addResultFile(FinalOutput->getValue(), &JA);
61046104
}
61056105

0 commit comments

Comments
 (0)