mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user