[clang] [Dependency Scanning] Teach `DependencyScanningTool::getModuleDependencies` to Process a List of Module Names (PR #129915)
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 5 12:48:34 PST 2025
================
@@ -748,17 +751,21 @@ bool DependencyScanningWorker::computeDependencies(
InMemoryFS->setCurrentWorkingDirectory(WorkingDirectory);
SmallString<128> FakeInputPath;
// TODO: We should retry the creation if the path already exists.
- llvm::sys::fs::createUniquePath(ModuleName + "-%%%%%%%%.input", FakeInputPath,
+ // FIXME: should we create files for multiple modules? I think so?
+ llvm::sys::fs::createUniquePath(ModuleNames[0] + "-%%%%%%%%.input",
----------------
cyndyishida wrote:
Someone should fact-check me, but I'm pretty sure compiler invocations always need a file to run an action over.
https://github.com/llvm/llvm-project/pull/129915
More information about the cfe-commits
mailing list