[SwiftCaching] Create standalone reproducer from swift caching build

Add a new option `-gen-reproducer` that when swift caching is used,
create a standalone reproducer that can be used to reproduce the
`swift-frontend` invocation.
This commit is contained in:
Steven Wu
2025-06-09 15:01:08 -07:00
parent 78552bb258
commit a24c34252f
8 changed files with 479 additions and 5 deletions

View File

@@ -51,6 +51,11 @@ llvm::Error printCompileJobCacheKey(llvm::cas::ObjectStore &CAS,
llvm::cas::ObjectRef Key,
llvm::raw_ostream &os);
/// Iterating through command-line options in cache key.
llvm::Error iterateCommandLine(llvm::cas::ObjectStore &CAS,
llvm::cas::ObjectRef Key,
std::function<llvm::Error(StringRef)> Callback);
} // namespace swift
#endif