Skip to content

Commit a9f9212

Browse files
committed
Accept /Fo and -Fo in -fmodule-output when running under CL mode
1 parent 2adcec7 commit a9f9212

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
@@ -5978,7 +5978,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
59785978
llvm::PrettyStackTraceString CrashInfo("Computing output path");
59795979
// Output to a user requested destination?
59805980
if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
5981-
if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o))
5981+
if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o, options::OPT__SLASH_Fo, options::OPT__SLASH_Fo_COLON))
59825982
return C.addResultFile(FinalOutput->getValue(), &JA);
59835983
}
59845984

0 commit comments

Comments
 (0)