@@ -243,7 +243,7 @@ public typealias ExternalTargetModuleDetailsMap = [ModuleDependencyId: ExternalT
243
243
commandLine. appendFlags ( " -emit-pcm " , " -module-name " , moduleId. moduleName,
244
244
" -o " , targetEncodedModulePath. description)
245
245
246
- // Fixup "-o -Xcc -Xclang -Xcc '<replace-me>'"
246
+ // Fixup "-o -Xcc '<replace-me>'"
247
247
if let outputIndex = commandLine. firstIndex ( of: . flag( " <replace-me> " ) ) {
248
248
commandLine [ outputIndex] = . path( VirtualPath . lookup ( targetEncodedModulePath) )
249
249
}
@@ -275,8 +275,8 @@ public typealias ExternalTargetModuleDetailsMap = [ModuleDependencyId: ExternalT
275
275
commandLine: inout [ Job . ArgTemplate ] ) throws {
276
276
// Prohibit the frontend from implicitly building textual modules into binary modules.
277
277
commandLine. appendFlags ( " -disable-implicit-swift-modules " ,
278
- " -Xcc " , " -Xclang " , " -Xcc " , " - fno-implicit-modules" ,
279
- " -Xcc " , " -Xclang " , " -Xcc " , " - fno-implicit-module-maps" )
278
+ " -Xcc " , " -fno-implicit-modules " ,
279
+ " -Xcc " , " -fno-implicit-module-maps " )
280
280
var swiftDependencyArtifacts : [ SwiftModuleArtifactInfo ] = [ ]
281
281
var clangDependencyArtifacts : [ ClangModuleArtifactInfo ] = [ ]
282
282
try addModuleDependencies ( moduleId: moduleId, pcmArgs: pcmArgs,
@@ -308,14 +308,14 @@ public typealias ExternalTargetModuleDetailsMap = [ModuleDependencyId: ExternalT
308
308
if let existingIndex = commandLine. firstIndex ( of: . flag( " -fmodule-file= " + moduleArtifactInfo. moduleName + " =<replace-me> " ) ) {
309
309
commandLine [ existingIndex] = . flag( " -fmodule-file= \( moduleArtifactInfo. moduleName) = \( clangModulePath. file. description) " )
310
310
} else {
311
- commandLine. appendFlags ( " -Xcc " , " -Xclang " , " -Xcc " ,
311
+ commandLine. appendFlags ( " -Xcc " ,
312
312
" -fmodule-file= \( moduleArtifactInfo. moduleName) = \( clangModulePath. file. description) " )
313
313
}
314
314
315
315
let clangModuleMapPath =
316
316
TypedVirtualPath ( file: moduleArtifactInfo. moduleMapPath. path,
317
317
type: . clangModuleMap)
318
- commandLine. appendFlags ( " -Xcc " , " -Xclang " , " -Xcc " ,
318
+ commandLine. appendFlags ( " -Xcc " ,
319
319
" -fmodule-map-file= \( clangModuleMapPath. file. description) " )
320
320
inputs. append ( clangModulePath)
321
321
inputs. append ( clangModuleMapPath)
0 commit comments