Skip to content

Commit 2233929

Browse files
authored
Merge pull request swiftlang#1074 from compnerd/tokens
Driver: correct tokenisation on Windows
2 parents b638e41 + 9c48bc5 commit 2233929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,8 @@ extension Driver {
11141114
#warning("Response file tokenization unimplemented for platform; behavior may be incorrect")
11151115
#endif
11161116
#if os(Windows)
1117-
return tokenizeWindowsResponseFile(content)
1117+
return content.split { $0 == "\n" || $0 == "\r\n" }
1118+
.flatMap { tokenizeWindowsResponseFile(String($0)) }
11181119
#else
11191120
return content.split { $0 == "\n" || $0 == "\r\n" }
11201121
.flatMap { tokenizeResponseFileLine($0) }

0 commit comments

Comments
 (0)