File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,11 @@ class ExplicitModuleDependencyResolver {
451451 }
452452
453453 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+
454459 std::vector<std::string> resolvedCommandLine;
455460 size_t skip = 0 ;
456461 for (auto it = commandline.begin (), end = commandline.end ();
Original file line number Diff line number Diff line change @@ -65,3 +65,10 @@ import F
6565
6666/// --------Clang module F
6767// 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