Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public extension Driver {
}

// Pass on the input files
commandLine.append(contentsOf: inputFiles.map { .path($0.file) })
commandLine.append(contentsOf: inputFiles.filter { $0.type == .swift }.map { .path($0.file) })
return (inputs, commandLine)
}

Expand Down
2 changes: 2 additions & 0 deletions Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
"-I", swiftModuleInterfacesPath.nativePathString(escaped: true),
"-I", stdlibPath.nativePathString(escaped: true),
"-I", shimsPath.nativePathString(escaped: true),
"/tmp/Foo.o",
"-import-objc-header",
"-explicit-module-build",
"-working-directory", path.nativePathString(escaped: true),
Expand All @@ -1049,6 +1050,7 @@ final class ExplicitModuleBuildTests: XCTestCase {

// Ensure we do not propagate the usual PCH-handling arguments to the scanner invocation
XCTAssertFalse(scannerCommand.contains("-pch-output-dir"))
XCTAssertFalse(scannerCommand.contains("Foo.o"))

// Here purely to dump diagnostic output in a reasonable fashion when things go wrong.
let lock = NSLock()
Expand Down