mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Frontend: teach -compile-module-from-interface action to emit ABI descriptor as byproduct
We have implemented a libSwiftDriver-based tool to generate prebuilt module cache for entire SDKs. Anchored on the same infrastructure, we could also generate ABI baselines for entire SDKs.
This commit is contained in:
@@ -42,6 +42,7 @@ class ModuleInterfaceBuilder {
|
||||
const StringRef moduleCachePath;
|
||||
const StringRef prebuiltCachePath;
|
||||
const StringRef backupInterfaceDir;
|
||||
const StringRef ABIDescriptorPath;
|
||||
const bool disableInterfaceFileLock;
|
||||
const SourceLoc diagnosticLoc;
|
||||
DependencyTracker *const dependencyTracker;
|
||||
@@ -96,6 +97,7 @@ public:
|
||||
StringRef moduleCachePath,
|
||||
StringRef backupInterfaceDir,
|
||||
StringRef prebuiltCachePath,
|
||||
StringRef ABIDescriptorPath,
|
||||
bool disableInterfaceFileLock = false,
|
||||
SourceLoc diagnosticLoc = SourceLoc(),
|
||||
DependencyTracker *tracker = nullptr)
|
||||
@@ -104,6 +106,7 @@ public:
|
||||
interfacePath(interfacePath), moduleName(moduleName),
|
||||
moduleCachePath(moduleCachePath), prebuiltCachePath(prebuiltCachePath),
|
||||
backupInterfaceDir(backupInterfaceDir),
|
||||
ABIDescriptorPath(ABIDescriptorPath),
|
||||
disableInterfaceFileLock(disableInterfaceFileLock),
|
||||
diagnosticLoc(diagnosticLoc), dependencyTracker(tracker) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user