Skip to content

Commit

Permalink
Pass -disallow-use-new-driver to swiftc because swift-driver (the def…
Browse files Browse the repository at this point in the history
…ault from Swift 5.5+) does not support -toolchain arg
  • Loading branch information
andre-alves committed Oct 22, 2021
1 parent 92f46e4 commit 28a23a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/SwiftInfoCore/Runner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public enum Runner {
(try! fileUtils.infofileFolder()) + "Infofile.swift",
"-toolchain",
"\(toolchainPath)",
// Swift 5.5 (from Xcode 13+) uses the new swift-driver which doesn't support -toolchain arg
// Disabling the driver for now as a workaround so it works with Swift 5.5 and older versions
"-disallow-use-new-driver",
] + Array(processInfoArgs.dropFirst()) // Route SwiftInfo args to the sub process
}
}

0 comments on commit 28a23a6

Please sign in to comment.