[clang] [clang][modules-driver] Precompile std modules independently of -o and final phase (PR #199289)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 27 02:23:02 PDT 2026
================
@@ -5471,6 +5478,13 @@ void Driver::BuildJobs(Compilation &C) const {
A->getKind() == clang::driver::Action::BinaryTranslatorJobClass)
continue;
+ if (isa<PrecompileJobAction>(A) && !A->getInputs().empty()) {
+ const Action *FirstAction = A->getInputs().front();
+ if (FirstAction->getType() == types::TY_CXXStdModule ||
+ FirstAction->getType() == types::TY_PP_CXXStdModule)
+ continue;
+ }
----------------
ChuanqiXu9 wrote:
What are we doing here?
https://github.com/llvm/llvm-project/pull/199289
More information about the cfe-commits
mailing list