Skip to content

Commit

Permalink
Merge pull request #77 from andre-alves/swift5.5-workaround
Browse files Browse the repository at this point in the history
-disallow-use-new-driver for Swift 5.5
  • Loading branch information
rockbruno authored Oct 24, 2021
2 parents 92f46e4 + 28a23a6 commit acaeb56
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 acaeb56

Please sign in to comment.