File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,11 @@ class ExplicitModuleDependencyResolver {
451
451
}
452
452
453
453
void pruneUnusedVFSOverlay () {
454
+ // Pruning of unused VFS overlay options for Clang dependencies is performed
455
+ // by the Clang dependency scanner.
456
+ if (moduleID.Kind == ModuleDependencyKind::Clang)
457
+ return ;
458
+
454
459
std::vector<std::string> resolvedCommandLine;
455
460
size_t skip = 0 ;
456
461
for (auto it = commandline.begin (), end = commandline.end ();
Original file line number Diff line number Diff line change @@ -65,3 +65,10 @@ import F
65
65
66
66
/// --------Clang module F
67
67
// CHECK-LABEL: "modulePath": "{{.*}}{{/|\\}}F-{{.*}}.pcm",
68
+ // CHECK: "commandLine": [
69
+ // CHECK: "-vfsoverlay",
70
+ // CHECK-NEXT: "{{.*}}{{/|\\}}preserve_used_vfs.swift.tmp{{/|\\}}overlay.yaml",
71
+ // CHECK: "-ivfsoverlay",
72
+ // CHECK-NEXT: "-Xcc",
73
+ // CHECK-NEXT: "{{.*}}{{/|\\}}preserve_used_vfs.swift.tmp{{/|\\}}overlay.yaml",
74
+ // CHECK: ],
You can’t perform that action at this time.
0 commit comments