mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add frontend mode -build-module-from-parseable-interface
Makes it easier to test the caching behavior, and may also be useful for "prebuilding" swiftinterfaces in the future, or having the Driver kick off a bunch of separate builds as proper tasks.
This commit is contained in:
@@ -92,6 +92,17 @@ public:
|
||||
return std::unique_ptr<ParseableInterfaceModuleLoader>(
|
||||
new ParseableInterfaceModuleLoader(ctx, cacheDir, tracker, loadMode));
|
||||
}
|
||||
|
||||
/// Unconditionally build \p InPath (a swiftinterface file) to \p OutPath (as
|
||||
/// a swiftmodule file).
|
||||
///
|
||||
/// A simplified version of the core logic in #openModuleFiles, mostly for
|
||||
/// testing purposes.
|
||||
static bool buildSwiftModuleFromSwiftInterface(ASTContext &Ctx,
|
||||
StringRef CacheDir,
|
||||
StringRef ModuleName,
|
||||
StringRef InPath,
|
||||
StringRef OutPath);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user