-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang-cl] Accept cl
-style output arguments (/Fo
, -Fo
) for --fmodule-output
#121046
base: main
Are you sure you want to change the base?
Conversation
d8108f0
to
350a517
Compare
@llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Sharadh Rajaraman (sharadhr) ChangesFull diff: https://github.com/llvm/llvm-project/pull/121046.diff 1 Files Affected:
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index ecae475f75da00..b47e0443d6e9db 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -5442,7 +5442,7 @@ InputInfoList Driver::BuildJobsForAction(
InputInfoList Result = BuildJobsForActionNoCache(
C, A, TC, BoundArch, AtTopLevel, MultipleArchs, LinkingOutput,
CachedResults, TargetDeviceOffloadKind);
- CachedResults[ActionTC] = Result;
+ CachedResults[ActionTC] = Result;
return Result;
}
@@ -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))
return C.addResultFile(FinalOutput->getValue(), &JA);
}
|
350a517
to
e1708db
Compare
The tests are failing and it looks relevent. |
Why is this submitted against the release/19.x branch? Is this a backport? If so, please indicate which commit it backports. |
e1708db
to
bc9b68d
Compare
Not a backport but a new commit. I have now re-submitted it against |
It is better to fix the test failures (or announce they are not relevant with your pr) |
7487d82
to
ff22639
Compare
✅ With the latest revision this PR passed the C/C++ code formatter. |
ff22639
to
d7a2799
Compare
d7a2799
to
d7b7e93
Compare
a839072
to
1f40c12
Compare
I'm not sure how to fix the |
cl
-style output arguments (/Fo
, -Fo
) for --fmodule-output
cl
-style output arguments (/Fo
, -Fo
) for --fmodule-output
@ChuanqiXu9 are you able to have a look? |
Sorry, I can't test and take a deeper look on windows. From https://discourse.llvm.org/t/driver-volunteer-wanted-for-modules-support-in-driver-for-mac-ubuntu-and-windows/83768/13, I think you can CC people there or calling again there. |
No description provided.