@@ -52,37 +52,11 @@ public extension Driver {
52
52
moduleDependencyGraphUse: . dependencyScan)
53
53
// FIXME: MSVC runtime flags
54
54
55
- // Pass in external target dependencies to be treated as placeholder dependencies by the scanner
56
- if let externalTargetPaths = externalTargetModulePathMap {
57
- let dependencyPlaceholderMapFile =
58
- try serializeExternalDependencyArtifacts ( externalTargetPaths: externalTargetPaths)
59
- commandLine. appendFlag ( " -placeholder-dependency-module-map-file " )
60
- commandLine. appendPath ( dependencyPlaceholderMapFile)
61
- }
62
-
63
55
// Pass on the input files
64
56
commandLine. append ( contentsOf: inputFiles. map { . path( $0. file) } )
65
57
return ( inputs, commandLine)
66
58
}
67
59
68
- /// Serialize a map of placeholder (external) dependencies for the dependency scanner.
69
- private func serializeExternalDependencyArtifacts( externalTargetPaths: ExternalTargetModulePathMap )
70
- throws -> VirtualPath {
71
- var placeholderArtifacts : [ SwiftModuleArtifactInfo ] = [ ]
72
- // Explicit external targets
73
- for (moduleId, binaryModulePath) in externalTargetPaths {
74
- let modPath = TextualVirtualPath ( path: VirtualPath . absolute ( binaryModulePath) . intern ( ) )
75
- placeholderArtifacts. append (
76
- SwiftModuleArtifactInfo ( name: moduleId. moduleName,
77
- modulePath: modPath) )
78
- }
79
- let encoder = JSONEncoder ( )
80
- encoder. outputFormatting = [ . prettyPrinted]
81
- let contents = try encoder. encode ( placeholderArtifacts)
82
- return VirtualPath . createUniqueTemporaryFileWithKnownContents ( . init( " \( moduleOutputInfo. name) -external-modules.json " ) ,
83
- contents)
84
- }
85
-
86
60
/// Returns false if the lib is available and ready to use
87
61
private func initSwiftScanLib( ) throws -> Bool {
88
62
// If `-nonlib-dependency-scanner` was specified or the libSwiftScan library cannot be found,
0 commit comments