mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ScanDependency] Add -experimental-clang-importer-direct-cc1-scan
Add an experimental option to tell dependency scanner to report clang cc1 args should be used to construct clang importer in all constructed swift-frontend tasks.
This commit is contained in:
@@ -160,7 +160,7 @@ SwiftModuleScanner::scanInterfaceFile(Twine moduleInterfacePath,
|
||||
|
||||
// Handle clang arguments. For caching build, all arguments are passed
|
||||
// with `-direct-clang-cc1-module-build`.
|
||||
if (Ctx.CASOpts.EnableCaching) {
|
||||
if (Ctx.ClangImporterOpts.ClangImporterDirectCC1Scan) {
|
||||
Args.push_back("-direct-clang-cc1-module-build");
|
||||
auto *importer =
|
||||
static_cast<ClangImporter *>(Ctx.getClangModuleLoader());
|
||||
|
||||
Reference in New Issue
Block a user