mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CAS] Integrate CAS into swift compiler
Teach swift compiler about CAS to allow compiler caching in the future. 1) Add flags to initiate CAS inside swift-frontend 2) Teach swift to compile using a CAS file system.
This commit is contained in:
@@ -1452,6 +1452,11 @@ static bool ParseClangImporterArgs(ClangImporterOptions &Opts,
|
||||
Opts.DisableSourceImport |=
|
||||
Args.hasArg(OPT_disable_clangimporter_source_import);
|
||||
|
||||
// Forward the FrontendOptions to clang importer option so it can be
|
||||
// accessed when creating clang module compilation invocation.
|
||||
if (FrontendOpts.EnableCAS)
|
||||
Opts.CASPath = FrontendOpts.CASPath;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user