SwiftBuild should query SwiftDriver instead of executing swiftc --version
for Swift compiler version information when using the integrated driver library
#205
Labels
enhancement
New feature or request
SwiftBuild currently executes
swiftc --version
to get Swift compiler version information early in its execution. However, SwiftDriver can provide this information as well (it has access to it from libSwiftScan'sswiftscan_compiler_target_info_query_v2
function). To minimize process spawns, and to avoid needing to use theswiftc
binary when it otherwise wouldn't be used, SwiftBuild should query SwiftDriver for this information when the integrated driver library is in use.The text was updated successfully, but these errors were encountered: