File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -957,6 +957,18 @@ importer::addCommonInvocationArguments(
957
957
}
958
958
}
959
959
}
960
+
961
+ for (auto &overlay : searchPathOpts.VFSOverlayFiles ) {
962
+ invocationArgStrs.push_back (" -ivfsoverlay" );
963
+ invocationArgStrs.push_back (overlay);
964
+ }
965
+
966
+ ClangInvocationFileMapping fileMapping =
967
+ getClangInvocationFileMapping (ctx, nullptr , /* supressDiagnostic*/ true );
968
+ if (fileMapping.requiresBuiltinHeadersInSystemModules ) {
969
+ invocationArgStrs.push_back (" -Xclang" );
970
+ invocationArgStrs.push_back (" -fbuiltin-headers-in-system-modules" );
971
+ }
960
972
}
961
973
962
974
bool ClangImporter::canReadPCH (StringRef PCHFilename) {
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -scan-dependencies -Xcc -v %s -o - | %validate-json | %FileCheck %s
3
+
4
+ // We want to explicitly import WinSDK's CRT.
5
+ // REQUIRES: OS=windows-msvc
6
+
7
+ import CRT
8
+
9
+ // CHECK: "modulePath": "{{.*}}\\ucrt-{{.*}}.pcm",
10
+ // CHECK-NEXT: "sourceFiles": [
11
+ // CHECK-NEXT: "{{.*}}\\ucrt\\module.modulemap"
You can’t perform that action at this time.
0 commit comments